blob: 8710ee4867e98577a34b78cdf1afaa83097c668e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
discard """
output: "x == 45ugh"
"""
template myAssert(cond: expr) =
when rand(3) < 3:
let c = cond.astToStr
if not cond:
echo c, "ugh"
var x = 454
myAssert(x == 45)
|