Hello rsc, iant (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
LGTM gri@golang.org writes: > Reviewers: rsc, iant, > > Message: > Hello rsc, iant (cc: golang-dev@googlegroups.com), > > I'd like you to review this change to > https://go.googlecode.com/hg/ > > > Description: > go/ast: use single-element map in test > > Avoids test failure due to undefined map iteration order. > > Please review this at http://codereview.appspot.com/5297048/ > > Affected files: > M src/pkg/go/ast/print_test.go > > > Index: src/pkg/go/ast/print_test.go > =================================================================== > --- a/src/pkg/go/ast/print_test.go > +++ b/src/pkg/go/ast/print_test.go > @@ -23,11 +23,10 @@ > {"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"},
*** Submitted as http://code.google.com/p/go/source/detail?r=37aa28ab346c *** 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