fixes #1888
This commit is contained in:
parent
b34bd3b163
commit
c6398d408d
9 changed files with 107 additions and 81 deletions
17
tests/cpp/tcppraise.nim
Normal file
17
tests/cpp/tcppraise.nim
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue