-
Notifications
You must be signed in to change notification settings - Fork 16
UT.AssertFalse
boxgaming edited this page Jul 11, 2026
·
1 revision
Used to verify that a given condition is false. If not, an error is thrown and execution is stopped.
The line containing the assertion error will be shown in the console output.
Available in release 0.11.0
UT.AssertFalse value
- The value parameter contains the variable or expression to test.
Import UT From "lib/test/unit-test.bas"
MkDir "temp2"
UT.AssertFalse _DirExists("temp")
UT.AssertFalse _DirExists("temp2")ERROR : 6 : -1 is not false
Error: -1 is not false
at Object.sub_AssertFalse (eval at _runProgram (http://localhost:8080/qbjs-ide.js:434:26), <anonymous>:36:29)
at main (eval at _runProgram (http://localhost:8080/qbjs-ide.js:434:26), <anonymous>:58:13)
at async eval (eval at _runProgram (http://localhost:8080/qbjs-ide.js:434:26), <anonymous>:60:3)
at async Object._runProgram [as runProgram] (http://localhost:8080/qbjs-ide.js:435:13)