diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /test/initialize.go | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'test/initialize.go')
-rw-r--r-- | test/initialize.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/initialize.go b/test/initialize.go index 807bf5bda..6dd7d67dc 100644 --- a/test/initialize.go +++ b/test/initialize.go @@ -10,11 +10,11 @@ import "fmt" import "reflect" type S struct { - A, B, C, X, Y, Z int; + A, B, C, X, Y, Z int } type T struct { - S; + S } var a1 = S { 0, 0, 0, 1, 2, 3 } @@ -49,14 +49,14 @@ var same = []Same { } func main() { - ok := true; + ok := true for _, s := range same { if !reflect.DeepEqual(s.a, s.b) { - ok = false; - fmt.Printf("not same: %v and %v\n", s.a, s.b); + ok = false + fmt.Printf("not same: %v and %v\n", s.a, s.b) } } if !ok { - fmt.Println("BUG: test/initialize"); + fmt.Println("BUG: test/initialize") } } |