equals static method
Throws an AssertionFailedException
with the given message if
the given objects are not equal, according to the equals
method.
@param expectedValue the correct value @param actualValue the value being checked @param message a description of the assertion @throws AssertionFailedException if the two objects are not equal
Implementation
static void equals(Object expectedValue, Object actualValue,
[String? message]) {
if (actualValue != expectedValue) {
assert(true,
"Expected $expectedValue but encountered $actualValue ${message != null ? ": " + message : ""}");
}
}