]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: fix test relying on map iteration order.
authorDavid Symonds <dsymonds@golang.org>
Tue, 18 Oct 2011 00:47:11 +0000 (11:47 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 18 Oct 2011 00:47:11 +0000 (11:47 +1100)
This fixes the 386 builds.

R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/5293043

src/pkg/fmt/fmt_test.go

index 8786e1b451e2a6a37c914ba2975375ff3f8c7b08..030ad6187fafbd3d90c3c8b743ecd774bdde1745 100644 (file)
@@ -349,8 +349,8 @@ var fmttests = []struct {
        {"%#v", make(chan int), "(chan int)(0xPTR)"},
        {"%#v", uint64(1<<64 - 1), "0xffffffffffffffff"},
        {"%#v", 1000000000, "1000000000"},
-       {"%#v", map[string]int{"a": 1, "b": 2}, `map[string] int{"a":1, "b":2}`},
-       {"%#v", map[string]B{"a": {1, 2}, "b": {3, 4}}, `map[string] fmt_test.B{"a":fmt_test.B{I:1, j:2}, "b":fmt_test.B{I:3, j:4}}`},
+       {"%#v", map[string]int{"a": 1}, `map[string] int{"a":1}`},
+       {"%#v", map[string]B{"a": {1, 2}}, `map[string] fmt_test.B{"a":fmt_test.B{I:1, j:2}}`},
        {"%#v", []string{"a", "b"}, `[]string{"a", "b"}`},
 
        // slices with other formats