From 0aefebb728622dfda05db68e2d04ba7c47405444 Mon Sep 17 00:00:00 2001
From: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
Date: Thu, 30 Apr 2020 19:04:53 +0300
Subject: JS unittest stacktrace fix, cleanup js repr and inclrtl includes
(#14168)
---
tests/js/tunittest_error.nim | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 tests/js/tunittest_error.nim
(limited to 'tests')
diff --git a/tests/js/tunittest_error.nim b/tests/js/tunittest_error.nim
new file mode 100644
index 000000000..ab736bf59
--- /dev/null
+++ b/tests/js/tunittest_error.nim
@@ -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()
--
cgit 1.4.1-2-gfad0
ted='selected'>devel
This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror) | ahoang <ahoang@tilde.institute> |
blob: 886a1d7660b8cada49d908ee5a9345d0c97dc87b (
plain) (
tree)