Fork me on GitHub
#kaocha
<
2022-07-04
>
cjohansen07:07:00

I have a test that wants to compare two maps containing floats… Hilarity ensues: -10.813026 (this is kaocha’s printed diff). Any neat tricks to compare them within some threshold of accuracy or similar?

cjohansen09:07:21

That looks excellent, thanks!

1
Alys Brooks02:07:22

Kaocha has matcher-combinators support, too, so it mismatches will be reported correctly. Unfortunately, it's not particularly documented, but I don't believe you have to do anything to take advantage of it.

1
Charlie Briggs10:07:13

Hey, is it possible to watch resource files in watch mode? We have some schemas in resources and we want to trigger watch running tests after changing it

imre10:07:30

Have you tried adding them to the src-paths key under the testable?