GenFractionalPoly

zio.test.poly.GenFractionalPoly
See theGenFractionalPoly companion trait

Attributes

Companion
trait
Source
GenFractionalPoly.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](gen: Gen[Any, A], num: Fractional[A]): GenFractionalPoly

Constructs an instance of GenFractionalPoly using the specified Gen and Fractional instances, existentially hiding the underlying type.

Constructs an instance of GenFractionalPoly using the specified Gen and Fractional instances, existentially hiding the underlying type.

Attributes

Source
GenFractionalPoly.scala
def double(implicit trace: Trace): GenFractionalPoly

Provides evidence that instances of Gen and Fractional exist for doubles.

Provides evidence that instances of Gen and Fractional exist for doubles.

Attributes

Source
GenFractionalPoly.scala
def float(implicit trace: Trace): GenFractionalPoly

Provides evidence that instances of Gen and Fractional exist for floats.

Provides evidence that instances of Gen and Fractional exist for floats.

Attributes

Source
GenFractionalPoly.scala
def genFractionalPoly(implicit trace: Trace): Gen[Any, GenFractionalPoly]

A generator of polymorphic values constrainted to have a Fractional instance.

A generator of polymorphic values constrainted to have a Fractional instance.

Attributes

Source
GenFractionalPoly.scala