[CLJ-1391] Allow logical operators on assert expressions Created: 26/Mar/14 Updated: 21/Jul/15 Resolved: 21/Jul/15
|Affects Version/s:||Release 1.5|
With current code, it is not possible to express logical operators on some clojure.test assert expressions. For example, this will work:
however, here will fail:
since '(thrown?)' is not an ordinary function, but looks like. This also adds confusion which is hard to explain to others unless '(is)' code was shown first.
Also, if the one would like to implement macro (e.g. 'is-not-thrown?') in form:
which could be even more confusing for a person not knowing how 'thrown?' is implemented.
|Comment by Stuart Halloway [ 21/Jul/15 8:27 AM ]|
Agreed that this is not great library design, but doing something better would need to be systematic, not ad hoc.