]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: fix test failure reporting.
authorDavid Symonds <dsymonds@golang.org>
Tue, 18 Oct 2011 01:26:09 +0000 (12:26 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 18 Oct 2011 01:26:09 +0000 (12:26 +1100)
There's a problem that is manifesting on the 386 builders,
but this test bug is masking it.

R=adg
CC=golang-dev
https://golang.org/cl/5295042

src/pkg/reflect/all_test.go

index 85022818a05dd241e4a749559d9b8e364ad7b677..915c84d3e7a0e0f072f055bf0f5533af766c137f 100644 (file)
@@ -887,7 +887,7 @@ func TestMap(t *testing.T) {
                if i >= len(keys) {
                        t.Errorf("Missing key #%d %q", i, k)
                } else if kv := keys[i]; kv.String() != k {
-                       t.Errorf("Keys[%q] = %d, want %d", i, kv.Int(), k)
+                       t.Errorf("Keys[%q] = %q, want %q", i, kv.String(), k)
                }
                i++