make tests green

This commit is contained in:
Araq 2014-08-31 15:15:26 +02:00
commit 30823c1ce3
44 changed files with 415 additions and 403 deletions

View file

@ -12,7 +12,7 @@ a = high(int)
b = -2
try:
writeln(stdout, b - a)
except EOverflow:
except OverflowError:
writeln(stdout, "the computation overflowed")
{.pop.} # overflow check

View file

@ -1,6 +1,6 @@
discard """
file: "toverflw2.nim"
outputsub: "Error: unhandled exception: over- or underflow [EOverflow]"
outputsub: "Error: unhandled exception: over- or underflow [OverflowError]"
exitcode: "1"
"""
var a : int32 = 2147483647