mirror of
https://github.com/golang/go
synced 2024-11-20 08:54:40 -07:00
go/ast: use single-element map in test
Avoids test failure due to undefined map iteration order. R=rsc, iant, iant CC=golang-dev https://golang.org/cl/5297048
This commit is contained in:
parent
22dd0ba90d
commit
e8a426aebe
@ -23,11 +23,10 @@ var tests = []struct {
|
||||
{"foobar", "0 \"foobar\""},
|
||||
|
||||
// maps
|
||||
{map[string]int{"a": 1, "b": 2},
|
||||
`0 map[string] int (len = 2) {
|
||||
{map[string]int{"a": 1},
|
||||
`0 map[string] int (len = 1) {
|
||||
1 . "a": 1
|
||||
2 . "b": 2
|
||||
3 }`},
|
||||
2 }`},
|
||||
|
||||
// pointers
|
||||
{new(int), "0 *0"},
|
||||
|
Loading…
Reference in New Issue
Block a user