summary refs log tree commit diff stats
path: root/examples/tunit.nim
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tunit.nim')
-rw-r--r--examples/tunit.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tunit.nim b/examples/tunit.nim
index d7b1fcbbd..26bcafda1 100644
--- a/examples/tunit.nim
+++ b/examples/tunit.nim
@@ -28,7 +28,7 @@ proc foo: bool =
   return true
 
 proc err =
-  raise newException(EArithmetic, "some exception")
+  raise newException(ArithmeticError, "some exception")
 
 test "final test":
   echo "inside suite-less test"
@@ -39,9 +39,9 @@ test "final test":
     d > 10
 
 test "arithmetic failure":
-  expect(EArithmetic):
+  expect(ArithmeticError):
     err()
 
-  expect(EArithmetic, ESystem):
+  expect(ArithmeticError, SystemError):
     discard foo()