This commit is contained in:
Araq
2015-04-27 23:11:36 +02:00
parent b34bd3b163
commit c6398d408d
9 changed files with 107 additions and 81 deletions

17
tests/cpp/tcppraise.nim Normal file
View File

@@ -0,0 +1,17 @@
discard """
cmd: "nim cpp $file"
output: '''foo
bar
Need odd and >= 3 digits##
baz'''
"""
# bug #1888
echo "foo"
try:
echo "bar"
raise newException(ValueError, "Need odd and >= 3 digits")
# echo "baz"
except ValueError:
echo getCurrentExceptionMsg(), "##"
echo "baz"