tunittestexceptiontype.nim 213 B

1234567891011
  1. discard """
  2. exitcode: 1
  3. outputsub: '''exception type is [ValueError]'''
  4. """
  5. import unittest
  6. suite "exception from test":
  7. test "show exception type":
  8. raise newException(ValueError, "exception type is")