Fixes #8719 (onFailedAssert now works for doAssert) (#8731)

This commit is contained in:
awr1 2018-08-23 03:20:58 -05:00 • committed by Andreas Rumpf
commit bf973d29da
2 changed files with 19 additions and 8 deletions

View file

@ -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)