summary refs log tree commit diff stats
path: root/tests/stdlib/tunittest_error.nim
blob: 7f05ec2a9f7dfe2899c878e0ee63d9ebb7e0855a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
discard """
  exitcode: 1
  outputsub: "failed: 1 == 3"
  matrix: "-d:case1; -d:case2"
  targets: "c js"
  joinable: false
"""

when defined case1:
  import unittest
  suite "Test":
    test "test require":
      check 1==2
      check 1==3

when defined case2:
  import unittest
  suite "Test":
    test "test require":
      require 1 == 3
      if true:
        quit 0 # intentional