Files
Nim/tests/assert/tuserassert.nim
Adam Strzelecki e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00

14 lines
182 B
Nim

discard """
output: "x == 45ugh"
"""
template myAssert(cond: expr) =
when 3 <= 3:
let c = cond.astToStr
if not cond:
echo c, "ugh"
var x = 454
myAssert(x == 45)