When I run a test in Spacemacs with Clojure mode via <SPC> m t t
it does not show a failure, even when the test clearly fails. See:
1 is not equal to 2, but still there are 0 test failures.
How can I make the test fail?
When I run a test in Spacemacs with Clojure mode via <SPC> m t t
it does not show a failure, even when the test clearly fails. See:
1 is not equal to 2, but still there are 0 test failures.
How can I make the test fail?
Copyright © 2021 Jogjafile Inc.
There is an issue in your test: it lacks comparison operator. The correct version is:
is
macro has following definition (edited source for brevity):As you can see with
(is 2 1)
you are calling the second arity whereform
is2
and the message for assertion is1
. As2
is truthy it makes the assertion to pass: