diff options
author | 七秒不觉梦 <7822577+7sDream@users.noreply.github.com> | 2018-05-28 10:24:04 +0800 |
---|---|---|
committer | Dmitry Atamanov <data-man@users.noreply.github.com> | 2018-05-28 05:24:04 +0300 |
commit | b6b6382e0b4f86759d07a1be150a826b9e0fe054 (patch) | |
tree | c9af50e2ecdc6dc20a3f5613eaefe57295a89a76 /tests/stdlib | |
parent | 21fb0db6e271148e5c8970f0f9f4805bae2ca59a (diff) | |
download | Nim-b6b6382e0b4f86759d07a1be150a826b9e0fe054.tar.gz |
Added: type name output when exception raised from unittest (#7869)
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tunittestexceptiontype.nim | 10 |
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") |