Skip to main content

is_false

Function is_false 

Source
pub fn is_false() -> impl Matcher<bool>
Expand description

Matches false.

use test_better_core::TestResult;
use test_better_matchers::{is_false, check};

fn main() -> TestResult {
    check!(1 == 2).satisfies(is_false())?;
    check!(true).violates(is_false())?;
    Ok(())
}