0.1.1 permalink Arrow_down_16x16



  • (call-being-tested call-form expected-result)

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/semi_sweet.clj:36 top

(defmacro call-being-tested [call-form expected-result]
  "Creates a map that contains a function-ized version of the form being 
   tested, an expected result, and the file position to refer to in case of 
   failure. See 'expect'."
   `{:function-under-test (fn [] ~call-form)
     :expected-result ~expected-result
     :expected-result-text-for-failures '~expected-result
     :file-position (user-file-position)})
Vars in midje.semi-sweet/call-being-tested: defmacro apply concat fn hash-map list seq vector
Used in 0 other vars

Comments top

No comments for call-being-tested. Log in to add a comment.