Provide ?==
and ==?
methods which forward to Equate.equate
Automatic conversion which makes the EquateOperators.?== and EquateOperators.==? methods available, which assert equality or output a diff.
Automatic conversion which makes the EquateOperators.?== and EquateOperators.==? methods available, which assert equality or output a diff.
Usage example:
import equate.scalacheck.Equate.?== import org.scalacheck.Prop.forAll import org.scalacheck.Properties object Contradiction extends Properties("Contradiction") { property("p == !p") = forAll { (p: Boolean) => p ?== (!p) } }
A property which succeeds if ob == ex
and otherwise fails with a
message including a diff of ob.toString
and ex.toString
.
A property which succeeds if ob == ex
and otherwise fails with a
message including a diff of ob.toString
and ex.toString
.
The observed value
The expected value
A prettifier
(Since version ) see corresponding Javadoc for more information.