go/ast, go/token: actually run tests; fix go/ast test

R=gri
CC=golang-dev
https://golang.org/cl/5292048
This commit is contained in:
Ian Lance Taylor 2011-10-20 10:30:01 -07:00
parent 9e1a2adf07
commit 22dd0ba90d
2 changed files with 4 additions and 6 deletions

View file

@ -203,9 +203,7 @@ NOTEST+=\
exp/gui\
exp/gui/x11\
exp/sql/driver\
go/ast\
go/doc\
go/token\
hash\
http/pprof\
http/httptest\

View file

@ -41,10 +41,10 @@ var tests = []struct {
4 }`},
// structs
{struct{ x, y int }{42, 991},
`0 struct { x int; y int } {
1 . x: 42
2 . y: 991
{struct{ X, Y int }{42, 991},
`0 struct { X int; Y int } {
1 . X: 42
2 . Y: 991
3 }`},
}