Function xpct::be_true

source ·
pub fn be_true() -> Matcher<'static, bool, bool>
Expand description

Succeeds when the actual value is true.

Examples

use xpct::{expect, be_true};

expect!(true).to(be_true());
expect!(false).to_not(be_true());