Liking cljdoc? Tell your friends :D

mb.hawk.assert-exprs.approximately-equal

See documentation in docs/approximately-equal.md.

See documentation in `docs/approximately-equal.md`.
raw docstring

*debug*clj

Whether to enable Methodical method tracing for debug purposes.

Whether to enable Methodical method tracing for debug purposes.
sourceraw docstring

=?-diffclj

(=?-diff expected actual)

Multimethod to use to diff two things with =?. Despite not having earmuffs, this is dynamic so it can be rebound at runtime.

=?-diff is defined in mb.hawk.assert-exprs.approximately-equal (mb/hawk/assert_exprs/approximately_equal.clj:14).

It caches methods using a methodical.impl.cache.watching.WatchingCache.

It uses the method combination methodical.impl.combo.threaded.ThreadingMethodCombination with the threading strategy :thread-last.

It uses the dispatcher methodical.impl.dispatcher.multi_default.MultiDefaultDispatcher with hierarchy #'clojure.core/global-hierarchy and prefs {}.

The default value is :default.

It uses the method table methodical.impl.method_table.standard.StandardMethodTable.

These primary methods are known:

Multimethod to use to diff two things with `=?`. Despite not having earmuffs, this is dynamic so it can be rebound at
  runtime.

=?-diff is defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:14).

It caches methods using a `methodical.impl.cache.watching.WatchingCache`.

It uses the method combination `methodical.impl.combo.threaded.ThreadingMethodCombination`
with the threading strategy `:thread-last`.

It uses the dispatcher `methodical.impl.dispatcher.multi_default.MultiDefaultDispatcher`
with hierarchy `#'clojure.core/global-hierarchy`
and prefs `{}`.

The default value is `:default`.

It uses the method table `methodical.impl.method_table.standard.StandardMethodTable`.

These primary methods are known:

* `[clojure.lang.AFunction java.lang.Object]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:76) 

* `[java.lang.Class java.lang.Object]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:60) 

* `[clojure.lang.IPersistentMap clojure.lang.IPersistentMap]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:104) 

* `[clojure.lang.Sequential clojure.lang.Sequential]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:81) 

* `:default`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:55) 

* `[mb.hawk.assert_exprs.approximately_equal.Exactly :default]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:134) 

* `[mb.hawk.assert_exprs.approximately_equal.Same :default]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:252) 

* `[mb.hawk.assert_exprs.approximately_equal.Schema :default]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:161) 

* `[java.util.regex.Pattern java.lang.String]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:65) 

* `[java.util.regex.Pattern java.util.regex.Pattern]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:71) 

* `[mb.hawk.assert_exprs.approximately_equal.Malli :default]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:186) 

* `[mb.hawk.assert_exprs.approximately_equal.Approx java.lang.Number]`, defined in [[mb.hawk.assert-exprs.approximately-equal]] (mb/hawk/assert_exprs/approximately_equal.clj:216) 
sourceraw docstring

=?-diff*clj

(=?-diff* expected actual)
(=?-diff* diff-fn expected actual)

Are expected and actual 'approximately' equal to one another?

Are `expected` and `actual` 'approximately' equal to one another?
sourceraw docstring

approxclj

(approx form)

Used inside a =? expression. Compares whether two numbers are approximately equal.

Used inside a =? expression. Compares whether two numbers are approximately equal.
sourceraw docstring

exactlyclj

(exactly expected)

Used inside a =? expression. Results have to be exactly equal as if by =. Use this to get around the normal way =? would compare things. This works inside collections as well.

Used inside a =? expression. Results have to be exactly equal as if by =. Use this to get around the normal way =?
would compare things. This works inside collections as well.
sourceraw docstring

malliclj

(malli schema)

Used inside a =? expression. Compares things to a malli schema.

Used inside a =? expression. Compares things to a malli schema.
sourceraw docstring

sameclj

(same k)

Used inside a =? expression. Checks that all occurrences of the same [[k]] value are equal.

On the first occurrence of (same k), it saves the actual value under [[k]]. All other occurrences of (same k) are expected to be equal to that saved value.

(is (?= [(same :id) (same :id)}] [1 1])) ; => true
(is (?= [(same :id) (same :id)}] [1 2])) ; => false
Used inside a =? expression. Checks that all occurrences of the same [[k]] value are equal.

On the first occurrence of `(same k)`, it saves the actual value under [[k]].
All other occurrences of `(same k)` are expected to be equal to that saved value.

```
(is (?= [(same :id) (same :id)}] [1 1])) ; => true
(is (?= [(same :id) (same :id)}] [1 2])) ; => false
```
sourceraw docstring

schemaclj

(schema schema)

Used inside a =? expression. Compares things to a schema.core schema.

Used inside a =? expression. Compares things to a schema.core schema.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close