Skip to content

Commit

Permalink
Improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
binkley committed May 3, 2024
1 parent ae9372c commit 04f8873
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ public class FloatingBigRational private constructor(
* @see [divideAndRemainder]
*/
override operator fun rem(divisor: BRat): BRat = when {
isNaN() -> NaN
divisor.isNaN() -> NaN
isZero() && divisor.isZero() -> NaN
isNaN() || divisor.isNaN() -> NaN
divisor.isZero() -> NaN
else -> super.rem(divisor)
}

Expand Down

0 comments on commit 04f8873

Please sign in to comment.