diff options
author | Alan Donovan <adonovan@google.com> | 2013-02-12 13:17:49 -0500 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2013-02-12 13:17:49 -0500 |
commit | 2964e5a06ff1cdcbb9f23a3dcc316994346dcbf5 (patch) | |
tree | bc57754fdf4396941d23568fe2ac29485713e4c2 /test/string_lit.go | |
parent | 766708d9298221283199d661a846103a04434dc2 (diff) | |
download | go-2964e5a06ff1cdcbb9f23a3dcc316994346dcbf5.tar.gz |
test: ensure all failing tests exit nonzero.
Previously merely printing an error would cause the golden
file comparison (in 'bash run') to fail, but that is no longer
the case with the new run.go driver.
R=iant
CC=golang-dev
https://codereview.appspot.com/7310087
Diffstat (limited to 'test/string_lit.go')
-rw-r--r-- | test/string_lit.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/string_lit.go b/test/string_lit.go index 457faaa88..fea6f553d 100644 --- a/test/string_lit.go +++ b/test/string_lit.go @@ -33,6 +33,7 @@ func assert(a, b, c string) { print("\ta[", i, "] = ", ac, "; b[", i, "] =", bc, "\n") } } + panic("string_lit") } } @@ -110,7 +111,7 @@ func main() { r = -1 s = string(r) assert(s, "\xef\xbf\xbd", "negative rune") - + // the large rune tests again, this time using constants instead of a variable. // these conversions will be done at compile time. s = string(0x10ffff) // largest rune value |