1
0
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:
Robert Hencke 2012-03-12 12:04:45 +09:00 committed by Mikio Hara
parent 2e1bc9e867
commit 663a7716a1
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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))
}
}
}