mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
* fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
25 lines
310 B
Nim
25 lines
310 B
Nim
discard """
|
|
exitcode: 1
|
|
outputsub: "[FAILED] with exception"
|
|
"""
|
|
|
|
# see also: `tests/stdlib/tunittest_error.nim`
|
|
|
|
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()
|