Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created July 22, 2011 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwmitchell/1098809 to your computer and use it in GitHub Desktop.
Save mwmitchell/1098809 to your computer and use it in GitHub Desktop.
(defn ok? [x]
(expect x => (contains {:id number?})))
(fact
[{:id 0} {:id 3}] => (has every? ok?))
@mwmitchell
Copy link
Author

Result is:

FAIL at (NO_SOURCE_FILE:1)
Actual result did not agree with the checking function.
Actual result: [{:id 0} {:id 3}]
Checking function: (has every? ok?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment