This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-24
Channels
- # announcements (11)
- # babashka (11)
- # beginners (36)
- # biff (14)
- # cider (2)
- # clj-commons (9)
- # clojure (34)
- # clojure-czech (2)
- # clojure-europe (65)
- # clojure-nl (2)
- # clojure-norway (12)
- # clojure-uk (4)
- # clojuredesign-podcast (7)
- # clojurescript (5)
- # cursive (8)
- # deps-new (6)
- # hugsql (1)
- # humbleui (2)
- # hyperfiddle (5)
- # leiningen (21)
- # off-topic (2)
- # polylith (5)
- # practicalli (1)
- # releases (1)
- # sci (64)
- # sql (9)
- # squint (43)
- # test-check (6)
- # vim (7)
#test-check
<
2023-11-24I've once seen this kind of assertion:
(is (= (-> response :body (json/read-str :key-fn keyword))
[{:paper-quantity-standard 512
:nickname "Galactic printer"
:brand "EPSON"
:prints-color? true
:papers-quantity-photo 35
:prints-photo? true
:public-id logic.common/valid-uuid-str?
:model "GalaxyPrint 3000"}]))
That we could place a pure function to "nest" testing, such this part :public-id logic.common/valid-uuid-str?
How can I achieve this? Which lib? Or whatever?
(I'm not sure if it's (is (=...
, maybe something with ...equals...)Sorry, maybe wrong place to ask?
I'm moving this question to #C03S1KBA2 channel, soon I'm removing this from here.