Well the trick is to use a template as follows, which lets you easily pass two values and it'll handle the comparison/write the values in a string. import strformat template assertCompare(a, b: untyped) = assert a == b, "`a` was " & $a & " `b` was " & $b assertCompare(10, 11) Run
- Is it possible to tell testament to print the values of an fai... halloleo
- Is it possible to tell testament to print the values of a... ElegantBeef
- Is it possible to tell testament to print the values ... halloleo
- Is it possible to tell testament to print the val... ElegantBeef
- Is it possible to tell testament to print the... xflywind
- Is it possible to tell testament to prin... ElegantBeef
- Is it possible to tell testament to ... halloleo
- Is it possible to tell testament... xflywind