]> Cypherpunks repositories - gostls13.git/commitdiff
template: do not depend on map iteration order
authorRuss Cox <rsc@golang.org>
Mon, 17 Oct 2011 18:51:45 +0000 (14:51 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 17 Oct 2011 18:51:45 +0000 (14:51 -0400)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5268048

src/pkg/template/exec_test.go

index d583033cbbd0f7ec56f32b6c76589430490c2465..50b0ad2b75fbad9cb112f6d9d33b52153c074d78 100644 (file)
@@ -231,7 +231,7 @@ var execTests = []execTest{
        {"dot complex", "<{{.}}>", "<(16.2-17i)>", 16.2 - 17i, true},
        {"dot string", "<{{.}}>", "<hello>", "hello", true},
        {"dot slice", "<{{.}}>", "<[-1 -2 -3]>", []int{-1, -2, -3}, true},
-       {"dot map", "<{{.}}>", "<map[two:22 one:11]>", map[string]int{"one": 11, "two": 22}, true},
+       {"dot map", "<{{.}}>", "<map[two:22]>", map[string]int{"two": 22}, true},
        {"dot struct", "<{{.}}>", "<{7 seven}>", struct {
                a int
                b string