mirror of
https://github.com/golang/go
synced 2024-11-22 04:04:40 -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)
|
conn, err := Dial("tcp", addr+":443", cfg)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
conn.Close()
|
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
|
continue
|
||||||
}
|
}
|
||||||
_, ok := err.(x509.HostnameError)
|
_, ok := err.(x509.HostnameError)
|
||||||
|
@ -835,7 +835,7 @@ func TestIsSpace(t *testing.T) {
|
|||||||
// IsSpace = isSpace is defined in export_test.go.
|
// IsSpace = isSpace is defined in export_test.go.
|
||||||
for i := rune(0); i <= unicode.MaxRune; i++ {
|
for i := rune(0); i <= unicode.MaxRune; i++ {
|
||||||
if IsSpace(i) != unicode.IsSpace(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