make tests green
This commit is contained in:
parent
3ba34f1762
commit
30823c1ce3
44 changed files with 415 additions and 403 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue