summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
author七秒不觉梦 <7822577+7sDream@users.noreply.github.com>2018-05-28 10:24:04 +0800
committerDmitry Atamanov <data-man@users.noreply.github.com>2018-05-28 05:24:04 +0300
commitb6b6382e0b4f86759d07a1be150a826b9e0fe054 (patch)
treec9af50e2ecdc6dc20a3f5613eaefe57295a89a76 /tests/stdlib
parent21fb0db6e271148e5c8970f0f9f4805bae2ca59a (diff)
downloadNim-b6b6382e0b4f86759d07a1be150a826b9e0fe054.tar.gz
Added: type name output when exception raised from unittest (#7869)
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tunittestexceptiontype.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stdlib/tunittestexceptiontype.nim b/tests/stdlib/tunittestexceptiontype.nim
new file mode 100644
index 000000000..e05a25409
--- /dev/null
+++ b/tests/stdlib/tunittestexceptiontype.nim
@@ -0,0 +1,10 @@
+discard """
+  exitcode: 1
+  outputsub: '''exception type is [ValueError]'''
+"""
+
+import unittest
+
+suite "exception from test":
+  test "show exception type":
+    raise newException(ValueError, "exception type is")