fix some tests

R=ken
OCL=15598
CL=15598
This commit is contained in:
Rob Pike 2008-09-20 15:16:48 -07:00
parent 39a4b1421f
commit 9ebd9d3b7d
3 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,7 @@
=========== ./dialgoogle.go
/Users/r/go/pkg/net.a:4 dialgoogle.go:5: os is becoming a package behind your back
=========== ./helloworld.go
hello, world
@ -277,10 +280,13 @@ fixedbugs/bug073.go:9: illegal types for operand: RSH
(<int32>INT32)
=========== fixedbugs/bug081.go
fixedbugs/bug081.go:5: syntax error
fixedbugs/bug081.go:5: x is var, not type
=========== fixedbugs/bug086.go
fixedbugs/bug086.go:5: function ends without a return statement
=========== fixedbugs/bug091.go
fixedbugs/bug091.go:14: label exit not defined
=========== fixedbugs/bug103.go
fixedbugs/bug103.go:8: function requires a return type

View File

@ -262,6 +262,9 @@ main()
tests(10);
tests(100);
print("tots=", tots, " totr=", totr, "\n");
if tots != totr || tots != 3648 {
print("tots=", tots, " totr=", totr, "\n");
sys.exit(1);
}
sys.exit(0);
}