Function galvanic_assert::matchers::eq
[−]
[src]
pub fn eq<'a, T: PartialEq + Debug + 'a>(
expected: T
) -> Box<Matcher<'a, T> + 'a>
Matches if the asserted value is equal to the expected value.
This matcher should not be used when asserting floating point values. Use [close_to] instead. This is the same as [equal_to].
Examples
use galvanic_assert::matchers::*; assert_that!(&(1+1), eq(2));