NumericalAssertions extension

on

Methods

shouldBeGreaterOrEqualTo(num expected) → void
Asserts that the value is greater or equal to expected.
shouldBeGreaterThan(num expected) → void
Asserts that the value is greater than expected.
shouldBeInRange({num lowerBound = double.negativeInfinity, num upperBound = double.infinity}) → void
Asserts that the value is greater than or equal to lowerBound and less than or equal to upperBound.
shouldBeLessOrEqualTo(num expected) → void
Asserts that the value is less or equal to expected.
shouldBeLessThan(num expected) → void
Asserts that the value is less than expected.
shouldBeNear(num expected, {num delta = 0}) → void
Asserts that the value is within delta of some expected value.
shouldBeNegative() → void
Asserts that the value is less than zero.
shouldBePositive() → void
Asserts that the value is greater than zero.
shouldBeZero() → void
Asserts that the value is zero.
shouldNotBeGreaterOrEqualTo(num expected) → void
Asserts that the value is not greater or equal to expected.
shouldNotBeGreaterThan(num expected) → void
Asserts that the value is not greater than expected.
shouldNotBeInRange({num lowerBound = double.negativeInfinity, num upperBound = double.infinity}) → void
Asserts that the value is greater than upperBound or less than lowerBound.
shouldNotBeLessOrEqualTo(num expected) → void
Asserts that the value is not less or equal to expected.
shouldNotBeLessThan(num expected) → void
Asserts that the value is not less than expected.
shouldNotBeNegative() → void
Asserts that the value is greater or equal zero.
shouldNotBePositive() → void
Asserts that the value is less or equal zero.
shouldNotBeZero() → void
Asserts that the value is not zero.