assertFalse

Signature

function assertFalse(bool data) internal;
function assertFalse(bool data, string memory err) internal;

Description

Asserts data is false.

Optionally includes an error message in the revert string.

Examples

bool failure = contract.fun();
assertFalse(failure);

SEE ALSO