renaming test and add a check: false test

This commit is contained in:
Ludovic Chenut 2024-07-05 13:20:46 +02:00
parent e8a3b81133
commit bdd5c682ea
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
1 changed files with 7 additions and 3 deletions

View File

@ -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()