Closed littleredcomputer closed 11 months ago
Attention: 1 lines
in your changes are missing coverage. Please review.
Comparison is base (
89f75a7
) 87.76% compared to head (4a4ad6b
) 87.77%.
Files | Patch % | Lines |
---|---|---|
src/emmy/ratio.cljc | 94.44% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Good to go except for maybe the js-mod
change if that is faster
A minimal set of arbitrary precision rationals is built on a pair of native JS BigInts. Rather than manage a general fraction field over some Euclidean domain, it was decided to produce something very similar to Clojure's native Ratio type.
Unusually for an Emmy file, the implementation is ClojureScript only; the main technicality in this library is preserving the BigInt-compatibility of the arithmetic operations done.