use crate::ExpectationBuilder;
use crate::expectations::EqualityExpectations;
pub trait BooleanExpectations {
fn to_be_true(self) -> Self;
fn to_be_false(self) -> Self;
}
impl<'e, B> BooleanExpectations for B
where
B: ExpectationBuilder<'e, Value = bool> + EqualityExpectations<bool, bool>,
{
fn to_be_true(self) -> Self {
self.to_equal(true)
}
fn to_be_false(self) -> Self {
self.to_equal(false)
}
}