Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Nov 7, 2020
1 parent 580e11c commit 1810cb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/stdlib/tasserts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import std/strutils
# line 10
block: ## checks AST isn't transformed as it used to
let a = 1
enforce a == 1
enforce a == 1, $a
try:
enforce a > 1
enforce a > 1, $a
except CatchableError as e:
assert e.msg.endsWith "tasserts.nim(15, 13) `a > 1` "
doAssertRaises(CatchableError): enforce a > 1
assert e.msg.endsWith "tasserts.nim(15, 13) `a > 1` 1"
doAssertRaises(CatchableError): enforce a > 1, $a

0 comments on commit 1810cb2

Please sign in to comment.