NumExpector<T extends num> extension

Expectations for num.

on

Properties

isNegative → void
Checks that the tested num is negative.
no setter
isNonNegative → void
Checks that the tested num is not negative.
no setter
isNonPositive → void
Checks that the tested num is not positive.
no setter
isNonZero → void
Checks that the tested num is not zero.
no setter
isPositive → void
Checks that the tested num is positive.
no setter
isZero → void
Checks that the tested num is zero.
no setter

Methods

closeTo(T value, T delta) → void
Checks that the tested num is within delta of some value.
greaterThan(T value) → void
Checks that the tested num is greater than the given value.
greaterThanOrEqualTo(T value) → void
Checks that the tested num is greater than or equal to the given value.
lessThan(T value) → void
Checks that the tested num is less than the given value.
lessThanOrEqualTo(T value) → void
Checks that the tested num is less than or equal to the given value.