mirror of
https://github.com/golang/go
synced 2024-11-12 07:10:22 -07:00
crypto/tls, fmt: print fixes
R=golang-dev, bradfitz, minux.ma, rsc, bradfitz CC=golang-dev https://golang.org/cl/5787069
This commit is contained in:
parent
2e1bc9e867
commit
663a7716a1
@ -50,7 +50,7 @@ func TestCertHostnameVerifyWindows(t *testing.T) {
|
||||
conn, err := Dial("tcp", addr+":443", cfg)
|
||||
if err == nil {
|
||||
conn.Close()
|
||||
t.Errorf("should fail to verify for example.com: %v", addr, err)
|
||||
t.Errorf("should fail to verify for example.com: %v", addr)
|
||||
continue
|
||||
}
|
||||
_, ok := err.(x509.HostnameError)
|
||||
|
@ -835,7 +835,7 @@ func TestIsSpace(t *testing.T) {
|
||||
// IsSpace = isSpace is defined in export_test.go.
|
||||
for i := rune(0); i <= unicode.MaxRune; i++ {
|
||||
if IsSpace(i) != unicode.IsSpace(i) {
|
||||
t.Errorf("isSpace(%U) = %v, want %v", IsSpace(i), unicode.IsSpace(i))
|
||||
t.Errorf("isSpace(%U) = %v, want %v", i, IsSpace(i), unicode.IsSpace(i))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user