Add float_compare_mode for comparing floats with epsilon#34
Add float_compare_mode for comparing floats with epsilon#34JonathanMurray wants to merge 1 commit intodavidpdrsn:mainfrom
Conversation
|
Hi! I have some test-cases that need to account for small differences in floating point values. The need is very similar to what's suggested in #29, so I took a stab at implementing it here. I started out with the less verbose syntax Does the approach look sensible, or am I missing some nuance? Oh, I also had to pull in an extra dependency. Seemed reasonable to me, not trying to implement the float comparisons by hand, although it pained me to grow the list of dependencies from 2 to 3 😄 |
|
@davidpdrsn Does this implementation look reasonable to you? |
Solves #29