object Equate
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Equate
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
class
EquateOperators[T] extends AnyRef
Provide
?==
and==?
methods which forward to Equate.equate
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
?==[T](x: T)(implicit pp: (T) ⇒ Pretty): EquateOperators[T]
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) } }
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
equate[T](ob: T, ex: T)(implicit pp: (T) ⇒ Pretty): Prop
A property which succeeds if
ob == ex
and otherwise fails with a message including a diff ofob.toString
andex.toString
.A property which succeeds if
ob == ex
and otherwise fails with a message including a diff ofob.toString
andex.toString
.- ob
The observed value
- ex
The expected value
- pp
A prettifier
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.