testing

Jacob Emcken 2025-02-04T09:51:52.042209Z

I am having difficulty creating a test case because (= (Float/parseFloat "123.1") 123.1) => false Is there a good strategy to approach the trickyness of floats?

Felipe 2025-02-24T17:32:18.865979Z

if you're using matcher-combinators, there's within-delta: https://cljdoc.org/d/nubank/matcher-combinators/3.9.1/api/matcher-combinators.matchers#within-delta

👍 1