Files
Nim/tests/exception/twrongexc.nim
Adam Strzelecki e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00

14 lines
204 B
Nim

discard """
file: "twrongexc.nim"
outputsub: "Error: unhandled exception: [ValueError]"
exitcode: "1"
"""
try:
raise newException(ValueError, "")
except OverflowError:
echo("Error caught")