assertFalse
Validates an expression to be of type boolean false. An optional failureMessage can be given for displaying should the validation fails.
assertFalse(expression)
# Or
assertFalse(expression, failureMessage)Parameters#
expression: An expression that must evaluate to abooleanfailureMessage: An optionalstringmessage to show when validation fails
Returns#
- No value
Example#
assertFalse(false && length([]) == 0 && containsKey({name: 'Bo'}, 'age'))
assertFalse(nonEmpty('Hello World'), 'Given string is not empty')