mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
23 lines
262 B
Nim
23 lines
262 B
Nim
discard """
|
|
exitcode: 1
|
|
outputsub: "[FAILED] with exception"
|
|
"""
|
|
|
|
import unittest
|
|
|
|
proc ddd() =
|
|
raise newException(IOError, "didn't do stuff")
|
|
|
|
proc ccc() =
|
|
ddd()
|
|
|
|
proc bbb() =
|
|
ccc()
|
|
|
|
proc aaa() =
|
|
bbb()
|
|
|
|
test "with exception":
|
|
check 3 == 3
|
|
aaa()
|