diff options
author | Robert Griesemer <gri@golang.org> | 2011-10-20 12:37:13 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2011-10-20 12:37:13 -0700 |
commit | e8a426aebe4968d5a27068e5aed2970a4c38f686 (patch) | |
tree | 048a6d98d4341acc2ebdff1891539e5e9f7a1d89 | |
parent | 22dd0ba90dfd832e5a60ec8ef5b986611e0e8fe9 (diff) | |
download | go-e8a426aebe4968d5a27068e5aed2970a4c38f686.tar.gz go-e8a426aebe4968d5a27068e5aed2970a4c38f686.zip |
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
-rw-r--r-- | src/pkg/go/ast/print_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pkg/go/ast/print_test.go b/src/pkg/go/ast/print_test.go index a4bc3bb9dc..c3153ed6f7 100644 --- a/src/pkg/go/ast/print_test.go +++ b/src/pkg/go/ast/print_test.go @@ -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"}, |