Package

org.scalatest

laws

Permalink

package laws

Visibility
  1. Public
  2. All

Type Members

  1. class ApplicativeLaws[Context[_], A, B, C] extends FunctorLaws[Context, A, B, C]

    Permalink
  2. trait AssertObeys extends AnyRef

    Permalink
  3. class FunctorLaws[Context[_], A, B, C] extends Laws

    Permalink
  4. abstract class Law extends AnyRef

    Permalink

    A law is a requirement expressed in the form of an assertion function augmented with explanatory information.

    A law is a requirement expressed in the form of an assertion function augmented with explanatory information. As generalized, laws take no parameters, but are rather designed to be used where required parameters are in scope. Commonly, this will be a class that takes implicit generators for any required parameters.

  5. trait Laws extends AnyRef

    Permalink

    A Laws class represents a list of Laws, together with a name for the group and methods to assert all of the laws.

  6. class MonadLaws[Context[_], A, B, C] extends ApplicativeLaws[Context, A, B, C]

    Permalink

    Represents the laws that should hold true for an algebraic structure (a Monad) which contains a "flatMap" operation and obeys the laws of associativity, right identity, and left identity.

Value Members

  1. object ApplicativeLaws

    Permalink
  2. object AssertObeys extends AssertObeys

    Permalink
  3. object FunctorLaws

    Permalink
  4. object MonadLaws

    Permalink

Ungrouped