mirror of
https://github.com/status-im/nim-unittest2.git
synced 2025-02-17 20:36:24 +00:00
renaming test and add a check: false test
This commit is contained in:
parent
e8a3b81133
commit
bdd5c682ea
@ -242,7 +242,8 @@ suite "break should works inside test body":
|
|||||||
check number == 2
|
check number == 2
|
||||||
|
|
||||||
suite "Issue #43":
|
suite "Issue #43":
|
||||||
proc p = fail()
|
proc testfail = fail()
|
||||||
|
proc testcheckfalse = check false
|
||||||
|
|
||||||
teardown:
|
teardown:
|
||||||
if testStatusObj.status != TestStatus.FAILED:
|
if testStatusObj.status != TestStatus.FAILED:
|
||||||
@ -253,5 +254,8 @@ suite "Issue #43":
|
|||||||
testStatusObj.status = TestStatus.OK
|
testStatusObj.status = TestStatus.OK
|
||||||
exitProcs.setProgramResult(QuitSuccess)
|
exitProcs.setProgramResult(QuitSuccess)
|
||||||
|
|
||||||
test "procedure defined outside the test scope fails":
|
test "calls a procedure which fails and is defined outside the test scope":
|
||||||
p()
|
testfail()
|
||||||
|
|
||||||
|
test "calls a procedure which checks false and is defined outside the test scope":
|
||||||
|
testcheckfalse()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user