(->failure-message {:keys [raw ref-data result expected-message actual-message
message list show-raw]})
(approximately v)
(approximately v d)
Given a value and an optional delta (default 0.001), return a predicate that expects its argument to be within that delta of the given value.
Given a value and an optional delta (default 0.001), return a predicate that expects its argument to be within that delta of the given value.
(actual-message e a str-e str-a)
(expect-fn e a)
(expected-message e a str-e str-a)
(message e a str-e str-a)
(functionally expected-fn actual-fn)
(functionally expected-fn actual-fn difference-fn)
Given a pair of functions, return a custom predicate that checks that they return the same result when applied to a value. May optionally accept a 'difference' function that should accept the result of each function and return a string explaininhg how they actually differ. For explaining strings, you could use expectations/strings-difference.
Given a pair of functions, return a custom predicate that checks that they return the same result when applied to a value. May optionally accept a 'difference' function that should accept the result of each function and return a string explaininhg how they actually differ. For explaining strings, you could use expectations/strings-difference.
(readme)
(readme readme-path test-path)
If invoked with no arguments, as happens when this namespace is loaded, then based on environment variables and system properties, parse the specified file (normally a readme) and generate a test file based on the Clojure code fragments found inside it. Can also be invoked with the path of the readme source file and the output path for the generated readme.clj test file. This arity is intended for use by tooling that wants to directly control this operation.
If invoked with no arguments, as happens when this namespace is loaded, then based on environment variables and system properties, parse the specified file (normally a readme) and generate a test file based on the Clojure code fragments found inside it. Can also be invoked with the path of the readme source file and the output path for the generated readme.clj test file. This arity is intended for use by tooling that wants to directly control this operation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close