Namespaces

 
0.1.1 permalink Arrow_down_16x16

in-any-order

midje.checkers

  • (in-any-order expected)
Produces matcher that matches sequences without regard to order

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source midje/checkers.clj:13 top

(defn in-any-order
  "Produces matcher that matches sequences without regard to order"
  [expected]
  (fn [actual] 
      (and (= (count expected) (count actual))
	   (= (set expected) (set actual)))))
Vars in midje.checkers/in-any-order: = and count defn fn set
Used in 0 other vars

Comments top

No comments for in-any-order. Log in to add a comment.