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:
parent
eea86de656
commit
9a7dd71944
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user