Add test for failing test output

Cleanup parser tests.
Move test output to separate files.
This commit is contained in:
Joel Stemmer
2012-03-09 16:57:16 +01:00
parent 4b851d63d2
commit 23311beb18
3 changed files with 111 additions and 77 deletions

6
tests/01-pass.txt Normal file
View File

@@ -0,0 +1,6 @@
=== RUN TestOne
--- PASS: TestOne (0.06 seconds)
=== RUN TestTwo
--- PASS: TestTwo (0.10 seconds)
PASS
ok package/name 0.160s

11
tests/02-fail.txt Normal file
View File

@@ -0,0 +1,11 @@
=== RUN TestOne
--- FAIL: TestOne (0.02 seconds)
file_test.go:11: Error message
file_test.go:11: Longer
error
message.
=== RUN TestTwo
--- PASS: TestTwo (0.13 seconds)
FAIL
exit status 1
FAIL package/name 0.151s