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 | 12465be0e9eac834e1ee0794c375452f13bdb1ab (patch) | |
tree | 908714ca7e0af4522145f81cc9e9608d0db91f9d | |
parent | 5d6a1fc7a892a4c001253e577a3ade909b4e2512 (diff) | |
download | go-12465be0e9eac834e1ee0794c375452f13bdb1ab.tar.gz |
go/ast: use single-element map in test
Avoids test failure due to undefined map iteration order.
R=rsc, iant, iant
CC=golang-dev
http://codereview.appspot.com/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 a4bc3bb9d..c3153ed6f 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"}, |