0.0.12 permalink Arrow_down_16x16

default-fail-message

circumspec.should

  • (default-fail-message {:keys [expected actual message locals]})
Default string message for a ahould failure/warning.

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 circumspec/should.clj:16 top

(defn default-fail-message
  "Default string message for a ahould failure/warning."
  [{:keys [expected actual message locals]}]
  (let [message-prefix (if message (str message "\n") nil)]
    (str
     "circumspec should-assertion failed:\n"
     message-prefix
     "expected " (pps expected)
     "actual " (pps actual)
     "locals " (pps locals))))
Vars in circumspec.should/default-fail-message: defn let str
Used in 0 other vars

Comments top

No comments for default-fail-message. Log in to add a comment.