]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls, fmt: print fixes
authorRobert Hencke <robert.hencke@gmail.com>
Mon, 12 Mar 2012 03:04:45 +0000 (12:04 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 12 Mar 2012 03:04:45 +0000 (12:04 +0900)
R=golang-dev, bradfitz, minux.ma, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5787069

src/pkg/crypto/tls/root_test.go
src/pkg/fmt/fmt_test.go

index 8dcf74ea72d31e437c62575876d1d81a50cd8867..e61c2185126c154536f391585e41374e928b14fe 100644 (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)
index 8c5afccac5a2c7783e229354ae8f4d118e5d2a06..758fc50d08d3638602d8e5c8453333cafab3911b 100644 (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))
                }
        }
 }