aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2011-10-18 11:47:11 +1100
committerDavid Symonds <dsymonds@golang.org>2011-10-18 11:47:11 +1100
commite45e3244204a8c944e231a8e168e68b5b5134bea (patch)
treee7fdd6ea38a52c499f229d45862e48cbbaa6ad46
parent07a34495cf07b903b3f173ad57582d560b912841 (diff)
downloadgo-e45e3244204a8c944e231a8e168e68b5b5134bea.tar.gz
go-e45e3244204a8c944e231a8e168e68b5b5134bea.zip
fmt: fix test relying on map iteration order.
This fixes the 386 builds. R=golang-dev, adg, r CC=golang-dev https://golang.org/cl/5293043
-rw-r--r--src/pkg/fmt/fmt_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/fmt/fmt_test.go b/src/pkg/fmt/fmt_test.go
index 8786e1b451..030ad6187f 100644
--- a/src/pkg/fmt/fmt_test.go
+++ b/src/pkg/fmt/fmt_test.go
@@ -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