diff options
Diffstat (limited to 'tests/assert')
-rw-r--r-- | tests/assert/tfaileddoassert.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/assert/tfaileddoassert.nim b/tests/assert/tfaileddoassert.nim new file mode 100644 index 000000000..3195fb406 --- /dev/null +++ b/tests/assert/tfaileddoassert.nim @@ -0,0 +1,11 @@ +discard """ + cmd: "nim $target -d:release $options $file" + output: ''' +assertion occured!!!!!! false +''' +""" + +onFailedAssert(msg): + echo("assertion occured!!!!!! ", msg) + +doAssert(1 == 2) |