interface Eq<T>
A Eq typeclass compares two values for equality, returning an AssertionError if they are not equal, or null if they are equal.
This equality typeclass is at the heart of the shouldBe matcher.
equals |
abstract fun equals(actual: T, expected: T): Throwable? |
NumberEq |
object NumberEq : Eq<Number> |
StringEq |
An Eq implementation for String's that generates diffs for errors when the string inputs are of a certain size. The min size for the diff is retrieved by largeStringDiffMinSize. object StringEq : Eq<String> |
ThrowableEq |
object ThrowableEq : Eq<Throwable> |