summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-28 11:24:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-28 11:24:37 +0200
commit5db01f7abe960da9430a0440c2b579ad0f2d05bd (patch)
tree1bd502e59e13cf15d0f17d97affa751f5d7dc2b2 /tests
parent3221ac094398492e09ea618638204793b0990eca (diff)
parentb6b6382e0b4f86759d07a1be150a826b9e0fe054 (diff)
downloadNim-5db01f7abe960da9430a0440c2b579ad0f2d05bd.tar.gz
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'tests')
-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")