This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-04
Channels
- # announcements (10)
- # asami (6)
- # babashka (22)
- # beginners (44)
- # biff (1)
- # calva (8)
- # clj-kondo (13)
- # clojure (62)
- # clojure-art (1)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-spec (19)
- # clojure-uk (2)
- # component (29)
- # datascript (1)
- # fulcro (9)
- # gratitude (2)
- # kaocha (6)
- # klipse (1)
- # luminus (16)
- # malli (9)
- # nbb (5)
- # off-topic (4)
- # reagent (5)
- # shadow-cljs (85)
- # spacemacs (1)
- # tools-deps (10)
- # vim (9)
- # xtdb (2)
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?
I have used https://github.com/nubank/matcher-combinators a few times, it has a within-delta
https://github.com/nubank/matcher-combinators#built-in-matchers
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.
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