Skip to content

Commit

Permalink
Note (potentially) breaking change in how namespaces should be used
Browse files Browse the repository at this point in the history
Now that expect is part of expectations.clojure.test -- and it's _different_ to expectations/expect -- it is important not to refer in the latter. For convenience, all of the public symbols in expectations are now available directly in expectations.clojure.test so you only need to rely on one namespace.

However, if you are just referring defexpect from e.c.t then your code will break since expect is now a macro, not just a symbol that gets translated by defexpect.
  • Loading branch information
seancorfield committed Oct 26, 2017
1 parent 7cad8e0 commit cbcb14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
# Changes in version 2.2.0

Add support for `clojure.test` via the new `expectations.clojure.test` namespace and the `defexpect` macro #82. Add `expecting` documentation macro (like `clojure.test/testing`).
Add support for `clojure.test` via the new `expectations.clojure.test` namespace and the `defexpect` macro #82. Add `expecting` documentation macro (like `clojure.test/testing`). You should either use the `expectations` namespace (for unnamed tests) or the `expectations.clojure.test` namespace (for named tests that are compatible with `clojure.test`) -- do not use both namespaces.

Add `approximately` predicate, to test if two floating point values are "equal" (within a given tolerance) #84.

Expand Down

0 comments on commit cbcb14c

Please sign in to comment.