This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-07
Channels
- # beginners (49)
- # boot (48)
- # cider (5)
- # cljs-dev (6)
- # clojure (165)
- # clojure-android (1)
- # clojure-austin (1)
- # clojure-india (2)
- # clojure-italy (23)
- # clojure-nl (2)
- # clojure-poland (4)
- # clojure-russia (63)
- # clojure-spec (5)
- # clojure-uk (121)
- # clojurescript (187)
- # core-async (1)
- # core-logic (4)
- # cursive (17)
- # datascript (1)
- # datomic (12)
- # emacs (2)
- # funcool (3)
- # hoplon (2)
- # jobs (7)
- # juxt (6)
- # lambdaisland (1)
- # luminus (2)
- # lumo (20)
- # midje (8)
- # off-topic (11)
- # om (38)
- # onyx (42)
- # pedestal (6)
- # planck (23)
- # protorepl (29)
- # ring (3)
- # rum (23)
- # spacemacs (6)
- # untangled (70)
- # vim (1)
trying to do this:
(fact "contains should work when nesting"
(-> ..col.. (get 0) :k) => ..v..
(provided
..col.. =contains=> [..m..]
..m.. =contains=> {:k ..v..}))
but getting this:
"contains should work when nesting" at (bla.clj:2)
Expected: ..v..
Actual: nil
the Actual
is the value returned by the function you used,
the Expected
is the value you specified
hm, not sure if I understood, but this is valid code:
(fact (:k ..m..) => ..v..
(provided ..m.. =contains=> {:k ..v..}))