Skip to content

Instantly share code, notes, and snippets.

@573
Created June 20, 2019 11:59
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 573/c1ee7b0b7224e80eee1574c4b9b2d568 to your computer and use it in GitHub Desktop.
Save 573/c1ee7b0b7224e80eee1574c4b9b2d568 to your computer and use it in GitHub Desktop.
midje q&a

Q: I cannot seem to run the examples listed i. e. here. How do they work?
A: First look after using the right modules: (use 'midje.repl) and also (require '[midje.checking.core :as checking]). The trick is then, each time a wiki page speaks of "checker" and lists examples of this concept to still wrap those example inside (fact ...) i. e. (fact "abc" => (contains "bc")). That's all there is to know.

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