Skip to content

Commit a681ec1

Browse files
committed
fix test
1 parent 8182bb6 commit a681ec1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/stdlib/tasserts.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import std/strutils
1010
# line 10
1111
block: ## checks AST isn't transformed as it used to
1212
let a = 1
13-
enforce a == 1
13+
enforce a == 1, $a
1414
try:
15-
enforce a > 1
15+
enforce a > 1, $a
1616
except CatchableError as e:
17-
assert e.msg.endsWith "tasserts.nim(15, 13) `a > 1` "
18-
doAssertRaises(CatchableError): enforce a > 1
17+
assert e.msg.endsWith "tasserts.nim(15, 13) `a > 1` 1"
18+
doAssertRaises(CatchableError): enforce a > 1, $a

0 commit comments

Comments
 (0)