1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:04:41 -07:00

template: do not depend on map iteration order

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5268048
This commit is contained in:
Russ Cox 2011-10-17 14:51:45 -04:00
parent eea86de656
commit 9a7dd71944

View 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