A suggestion for testing style in Clojure
Getting a test to fail is one thing; getting it to express why it failed is another.Clojure.test provides an assertion macro: is (deftest “my-function” (testing “some requirement” (is (something-that-evaluates-to-bool (arg1) (arg2)) “Message to print when it’s false”))) When this assertion fails, in addition to the message, “expected” and “actual” results print. The is macro tries to … Read moreA suggestion for testing style in Clojure