midje

2017-03-07T21:16:20.000014Z

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

2017-03-07T21:16:30.000015Z

is that the expected behavior?

2017-03-07T21:19:16.000016Z

^ right

2017-03-07T21:19:44.000017Z

actual => expected

2017-03-07T21:21:12.000018Z

the Actual is the value returned by the function you used, the Expected is the value you specified

2017-03-07T21:22:16.000019Z

hm, not sure if I understood, but this is valid code:

(fact (:k ..m..) => ..v..
         (provided ..m.. =contains=> {:k ..v..}))

2017-03-07T21:22:36.000020Z

the problem is that it doesn't work when you nest a metaconstant inside another with =contains=>