Files
Nim/tests/js/tunittest_error.nim
Timothee Cour e07d661d16 fix #14475; unittest.require now works with nim c; require and check now works with -d:nodejs (#14676)
* 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
2020-07-14 13:14:32 +02:00

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()