make tests green again

This commit is contained in:
Andreas Rumpf 2018-07-05 15:51:04 +02:00
commit 0926754e68
31 changed files with 61 additions and 55 deletions

View file

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