From 46690a30548a029c3ced15c58088685898d52f6f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 18 Jan 2012 14:31:31 -0800 Subject: test: change several tests to not print This will make these tests more meaningful for gccgo, which runs tests in parallel and has no equivalent to golden.out. Remove ken/simpprint.go since it duplicates helloworld.go. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5536058 --- test/turing.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/turing.go') diff --git a/test/turing.go b/test/turing.go index 9d3f3a669..366982e67 100644 --- a/test/turing.go +++ b/test/turing.go @@ -25,6 +25,7 @@ func scan(dir int) { } func main() { + r := "" for { switch prog[pc] { case '>': @@ -36,7 +37,7 @@ func main() { case '-': a[p]-- case '.': - print(string(a[p])) + r += string(a[p]) case '[': if a[p] == 0 { scan(1) @@ -46,6 +47,9 @@ func main() { scan(-1) } default: + if r != "Hello World!\n" { + panic(r) + } return } pc++ -- cgit v1.2.1