Packages

final class Assertion[-A] extends AssertionM[A] with (=> A) => AssertResult

An Assertion[A] is capable of producing assertion results on an A. As a proposition, assertions compose using logical conjunction and disjunction, and can be negated.

Self Type
Assertion[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Assertion
  2. Function1
  3. AssertionM
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &&[A1 <: A](that: => Assertion[A1]): Assertion[A1]

    Returns a new assertion that succeeds only if both assertions succeed.

  4. def &&[A1 <: A](that: => AssertionM[A1])(implicit trace: ZTraceElement): AssertionM[A1]

    Returns a new assertion that succeeds only if both assertions succeed.

    Returns a new assertion that succeeds only if both assertions succeed.

    Definition Classes
    AssertionM
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def ??(string: String): Assertion[A]

    A symbolic alias for label.

    A symbolic alias for label.

    Definition Classes
    AssertionAssertionM
  7. def andThen[A](g: (AssertResult) => A): (=> A) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. def apply(a: => A): AssertResult

    Evaluates the assertion with the specified value.

    Evaluates the assertion with the specified value.

    Definition Classes
    Assertion → Function1
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def canEqual(that: AssertionM[_]): Boolean
    Definition Classes
    AssertionAssertionM
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def compose[A](g: (A) => => A): (A) => AssertResult
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(that: Any): Boolean
    Definition Classes
    AssertionAssertionM → AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AssertionAssertionM → AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def label(string: String): Assertion[A]

    Labels this assertion with the specified string.

    Labels this assertion with the specified string.

    Definition Classes
    AssertionAssertionM
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def negate(implicit trace: ZTraceElement): Assertion[A]

    Returns the negation of this assertion.

    Returns the negation of this assertion.

    Definition Classes
    AssertionAssertionM
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val render: Render
    Definition Classes
    AssertionAssertionM
  25. val run: (=> A) => AssertResult
  26. def runM: (=> A) => AssertResultM
    Definition Classes
    AssertionAssertionM
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def test(a: A): Boolean

    Tests the assertion to see if it would succeed on the given element.

  29. def toString(): String

    Provides a meaningful string rendering of the assertion.

    Provides a meaningful string rendering of the assertion.

    Definition Classes
    Assertion → Function1 → AssertionM → AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. def ||[A1 <: A](that: => Assertion[A1]): Assertion[A1]

    Returns a new assertion that succeeds if either assertion succeeds.

  34. def ||[A1 <: A](that: => AssertionM[A1])(implicit trace: ZTraceElement): AssertionM[A1]

    Returns a new assertion that succeeds if either assertion succeeds.

    Returns a new assertion that succeeds if either assertion succeeds.

    Definition Classes
    AssertionM

Inherited from (=> A) => AssertResult

Inherited from AssertionM[A]

Inherited from AnyRef

Inherited from Any

Ungrouped