22 lines
262 B
Nim
22 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()
|