beOdd method
Asserts that the numeric value is odd.
Implementation
NumericAssertions beOdd() {
if (isReversed) {
Execute.assertion
.forCondition(subject! % 2 != 0)
.failWith('$subjectLabel\n $subject\nshould not be odd number.');
} else {
Execute.assertion
.forCondition(subject! % 2 == 0)
.failWith('$subjectLabel\n $subject\nshould be odd number.');
}
return NumericAssertions(subject);
}