]> Cypherpunks.ru repositories - gostls13.git/commitdiff
update tests
authorRob Pike <r@golang.org>
Wed, 3 Sep 2008 20:21:05 +0000 (13:21 -0700)
committerRob Pike <r@golang.org>
Wed, 3 Sep 2008 20:21:05 +0000 (13:21 -0700)
add commands to two new ken tests

R=gri
OCL=14751
CL=14751

test/fixedbugs/bug027.go [moved from test/bugs/bug027.go with 92% similarity]
test/fixedbugs/bug072.go [moved from test/bugs/bug072.go with 100% similarity]
test/fixedbugs/bug076.go [moved from test/bugs/bug076.go with 100% similarity]
test/golden.out
test/ken/array.go
test/ken/shift.go

similarity index 92%
rename from test/bugs/bug027.go
rename to test/fixedbugs/bug027.go
index 33005a24069e25359dc64570222bbe39a1c50647..f7b33c04cb5a0ef3f40762f1e8f58570f8de7e2f 100644 (file)
@@ -51,7 +51,7 @@ func main() {
                print(i, " ", x.val, "\n");  // prints correct list
        }
        for i := 0; i < v.nelem; i++ {
-               print(i, " ", I(v.At(i)).val, "\n"); // always prints 5 - bad code - should be *I()
+               print(i, " ", v.At(i).(*I).val, "\n");
        }
 }
 /*
similarity index 100%
rename from test/bugs/bug072.go
rename to test/fixedbugs/bug072.go
similarity index 100%
rename from test/bugs/bug076.go
rename to test/fixedbugs/bug076.go
index 652866e86cf9f501608848d0b202b8906d970352..0fe042c3b20e9fb8995fd15e1e04fcc87eee0a72 100644 (file)
@@ -34,6 +34,14 @@ Hello World!
 =========== ken/rob2.go
 (defn foo (add 12 34))
 
+=========== ken/shift.go
+ken/shift.go:50: stupid shift: 1025
+ken/shift.go:51: stupid shift: 1025
+ken/shift.go:57: stupid shift: 1025
+ken/shift.go:58: stupid shift: 1025
+ken/shift.go:64: stupid shift: 1025
+ken/shift.go:65: stupid shift: 1025
+
 =========== ken/simpprint.go
 hello world
 
@@ -54,15 +62,6 @@ BUG should compile
 sys·printstring: main·sigs_I: not defined
 BUG: known to fail incorrectly
 
-=========== bugs/bug027.go
-bugs/bug027.go:50: illegal types for operand: CONV
-       (<Element>I{})
-       (<I>{<val><int32>INT32;})
-bugs/bug027.go:50: illegal types for operand: CONV
-       (<Element>I{})
-       (<I>{<val><int32>INT32;})
-BUG: known to fail incorrectly
-
 =========== bugs/bug029.go
 BUG: known to succeed incorrectly
 
@@ -73,12 +72,8 @@ BUG: compilation succeeds incorrectly
 BUG: compilation succeeds incorrectly
 
 =========== bugs/bug047.go
-bugs/bug047.go:13: illegal types for operand: CONV
-       (<T>{<s><string>*STRING;<f><float32>FLOAT32;})
 bugs/bug047.go:16: illegal types for operand: CONV
        (MAP[<int32>INT32]<int32>INT32)
-bugs/bug047.go:13: illegal types for operand: CONV
-       (<T>{<s><string>*STRING;<f><float32>FLOAT32;})
 bugs/bug047.go:16: illegal types for operand: CONV
        (MAP[<int32>INT32]<int32>INT32)
 BUG: known to fail incorrectly
@@ -108,14 +103,12 @@ BUG: compilation should succeed
 bugs/bug068.go:6: unknown escape sequence: '
 BUG: compilation should succeed
 
-=========== bugs/bug072.go
-bugs/bug072.go:6: bug: undefined
-BUG: compiler crashes after error message - Bus error
-Bus error               $G $D/$F.go
-
 =========== bugs/bug074.go
+bugs/bug074.go:6: illegal types for operand: CONV
+       (<string>*STRING)
+bugs/bug074.go:6: illegal types for operand: CONV
+       (<string>*STRING)
 BUG: compiler crashes - Bus error
-Bus error               $G $D/$F.go
 
 =========== bugs/bug075.go
 bugs/bug075.go:11: bad shape across assignment - cr=1 cl=2
@@ -180,6 +173,19 @@ fixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
 =========== fixedbugs/bug025.go
 fixedbugs/bug025.go:7: variable exported but not defined: Foo
 
+=========== fixedbugs/bug027.go
+hi
+0 44444
+1 3333
+2 222
+3 11
+4 0
+0 44444
+1 3333
+2 222
+3 11
+4 0
+
 =========== fixedbugs/bug035.go
 fixedbugs/bug035.go:6: var i redeclared in this block
      previous declaration at fixedbugs/bug035.go:5
@@ -210,6 +216,13 @@ inner loop top i 0
 do break
 broke
 
+=========== fixedbugs/bug072.go
+fixedbugs/bug072.go:6: bug: undefined
+fixedbugs/bug072.go:6: illegal types for operand: CONV
+       (<string>*STRING)
+fixedbugs/bug072.go:6: illegal types for operand: CONV
+       (<string>*STRING)
+
 =========== fixedbugs/bug073.go
 fixedbugs/bug073.go:8: illegal types for operand: LSH
        (<int32>INT32)
index bd17f645c5aefb216483336d155ce072e74aa6ea..0dac2a6893cfec3580d24c2628bfa5bca05dd5b0 100644 (file)
@@ -4,7 +4,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-
 package        main
 
 export func
@@ -147,10 +146,10 @@ testfdfault()
 func
 main()
 {
-       print("testpdpd\n");    testpdpd();
-       print("testpfpf\n");    testpfpf();
-       print("testpdpf1\n");   testpdpf1();
-       print("testpdpf2\n");   testpdpf2();
+       testpdpd();
+       testpfpf();
+       testpdpf1();
+       testpdpf2();
 //     print("testpdfault\n"); testpdfault();
 //     print("testfdfault\n"); testfdfault();
 }
index 180abbf3fc5577851f7bbf3f572e34e82a717b00..0be8da51b69e3724c37d3f1bcdaf69189cc4ecda 100644 (file)
@@ -4,7 +4,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-
 package main
 
 var    ians    [18]int;