TestAssertions

zio.prelude.TestAssertions

Provides versions of assertions from ZIO Test that use Equal, Ord, and Validation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def assertionRec[A, B](name: String)(assertion: Assertion[B])(get: (=> A) => Option[B]): Assertion[A]

Makes a new assertion that requires a value equal the specified value.

Makes a new assertion that requires a value equal the specified value.

Attributes

Makes a new assertion that requires a validation failure satisfying a specified assertion.

Makes a new assertion that requires a validation failure satisfying a specified assertion.

Attributes

def isGreaterThan[A](reference: A)(implicit ord: PartialOrd[A]): Assertion[A]

Makes a new assertion that requires the value be greater than the specified reference value.

Makes a new assertion that requires the value be greater than the specified reference value.

Attributes

Makes a new assertion that requires the value be greater than or equal to the specified reference value.

Makes a new assertion that requires the value be greater than or equal to the specified reference value.

Attributes

def isLessThan[A](reference: A)(implicit ord: PartialOrd[A]): Assertion[A]

Makes a new assertion that requires the value be less than the specified reference value.

Makes a new assertion that requires the value be less than the specified reference value.

Attributes

Makes a new assertion that requires the value be less than or equal to the specified reference value.

Makes a new assertion that requires the value be less than or equal to the specified reference value.

Attributes

Makes a new assertion that requires a validation failure satisfying a specified assertion.

Makes a new assertion that requires a validation failure satisfying a specified assertion.

Attributes