]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast, go/token: actually run tests; fix go/ast test
authorIan Lance Taylor <iant@golang.org>
Thu, 20 Oct 2011 17:30:01 +0000 (10:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 20 Oct 2011 17:30:01 +0000 (10:30 -0700)
R=gri
CC=golang-dev
https://golang.org/cl/5292048

src/pkg/Makefile
src/pkg/go/ast/print_test.go

index e784b26333baf526c52d82c37ae4f5cc1838edb7..ffb1547c56735407207fa1e3979082d38f14309a 100644 (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\
index f4e8f7a78f70449ac602f4b55c2ff89fd1e87cd7..a4bc3bb9dcdbb33f3580a88aa19819743cc93015 100644 (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  }`},
 }