pub fn eq<'a, T: PartialEq + Debug + 'a>(
expected: T,
) -> Box<dyn Matcher<'a, T> + 'a>
Expand description
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));