Skip to content
marick edited this page Dec 17, 2010 · 23 revisions

0.9

  • Checkers for collection-like structures, as in: [3 2 1] => (contains [1]) #{1 2 3} => (contains 1) "abc" => (contains #"bc")

  • throws and other checkers become "checker-aware", so that you can say: (f) => (throws Error (contains #"part of a message"))

  • Caught exceptions contain some guess about where they came from, rather than just {"this Throwable was captured by midje:" #<Error java.lang.Error: If {:a 1} is a map, [{:a 1}] should be too.>}

1.0

  • Some notation that eliminates this:

    ( (checker arg) (value-generator)) => falsey

    I'm leaning toward

    (value-generator) =deny=> (checker arg)

Clone this wiki locally