mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 23:05:27 +00:00
JS unittest stacktrace fix, cleanup js repr and inclrtl includes (#14168)
This commit is contained in:
22
tests/js/tunittest_error.nim
Normal file
22
tests/js/tunittest_error.nim
Normal file
@@ -0,0 +1,22 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user