This commit is contained in:
Simon Hafner 2015-01-24 18:01:39 -06:00
commit 9c12ad0187

View file

@ -1,6 +1,6 @@
discard """ discard """
output: ''' output: '''
WARNING: false first asseertion from bar WARNING: false first assertion from bar
ERROR: false second assertion from bar ERROR: false second assertion from bar
-1 -1
tfailedassert.nim:27 false assertion from foo tfailedassert.nim:27 false assertion from foo
@ -31,7 +31,7 @@ proc bar: int =
# in this proc # in this proc
onFailedAssert(msg): echo "WARNING: " & msg onFailedAssert(msg): echo "WARNING: " & msg
assert(false, "first asseertion from bar") assert(false, "first assertion from bar")
onFailedAssert(msg): onFailedAssert(msg):
echo "ERROR: " & msg echo "ERROR: " & msg