summary refs log tree commit diff stats
path: root/tests/overflw
diff options
context:
space:
mode:
Diffstat (limited to 'tests/overflw')
-rw-r--r--tests/overflw/toverflw.nim4
-rw-r--r--tests/overflw/toverflw2.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/overflw/toverflw.nim b/tests/overflw/toverflw.nim
index cd7b65acf..fbe0d0a38 100644
--- a/tests/overflw/toverflw.nim
+++ b/tests/overflw/toverflw.nim
@@ -2,7 +2,7 @@ discard """
   file: "toverflw.nim"
   output: "the computation overflowed"
 """
-# Tests nimrod's ability to detect overflows

+# Tests nim's ability to detect overflows

 

 {.push overflowChecks: on.}

 

@@ -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

diff --git a/tests/overflw/toverflw2.nim b/tests/overflw/toverflw2.nim
index f7fe3d574..75bd4cdf5 100644
--- a/tests/overflw/toverflw2.nim
+++ b/tests/overflw/toverflw2.nim
@@ -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