beGreaterOrEqualThan method
Asserts that the numeric value is greater or equal than the specified expected
value.
expected
The value to compare the current numeric value with.
Implementation
NumericAssertions beGreaterOrEqualThan(num expected) {
if (isReversed) {
return NumericAssertions(subject).beLessOrEqualThan(expected);
}
if (subject! < expected) {
throw ShouldlyTestFailureError('$subject less than $expected');
}
return NumericAssertions(subject);
}