make tests green again
This commit is contained in:
parent
9b31f67859
commit
0926754e68
31 changed files with 61 additions and 55 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue