assertFalse

Signature

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

Description

Asserts the condition is false.

Examples

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