mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
23 lines
386 B
Nim
23 lines
386 B
Nim
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
|