diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-07-05 15:51:04 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-05 15:51:04 +0200 |
commit | 0926754e68861947c67986bc9c7e0a011a58267b (patch) | |
tree | bc11469a33f1aabd202e7105177553688439712a /examples/tunit.nim | |
parent | 9b31f6785947974e89d46bbc0dee11f1c78754dc (diff) | |
download | Nim-0926754e68861947c67986bc9c7e0a011a58267b.tar.gz |
make tests green again
Diffstat (limited to 'examples/tunit.nim')
-rw-r--r-- | examples/tunit.nim | 6 |
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() |