Matcher which succeeds if observed == expected
, and otherwise
provides a diff between observed.toString
and expected.toString
in
the error message.
Matcher which succeeds if observed == expected
, and otherwise
provides a diff between observed.toString
and expected.toString
in
the error message. For example, use 2 + 2 should equate (4)
to
assert that 2 + 2 == 4
.
The diff is computed character by character. Using this on highly different values which take up multiple screenfuls is likely slow.
The expected value, against which the observed value will be compared.
(Since version ) see corresponding Javadoc for more information.
Make the equate method available for importing.
Usage example: