Basic Boolean Assertions - dicksonlaw583/gmassert2 GitHub Wiki
Basic Boolean Assertions
These assertions from GMAssert_Boolean
are the simplest type, checking whether the given value is true or false when typecasted to Boolean.
assert(got, [msg])
Assert that the gotten expression is true.
Example
assert(3 < 5); //Assertion OK
assert(5 < 3); //Assertion failed
assert_fail(got, [msg])
Assert that the gotten expression is false.
Example
assert_fail(3 > 5); //Assertion OK
assert_fail(5 > 3); //Assertion failed