Developer Scratch Pad
Lisp challenge 3 — Unit? I don’t need no stinking Unit

One of the first questions I ask myself when I start is what is the most used testing framework. The testing framework just gets you up to speed on making tests. Yes, you can create your own but it is a more elaborate task which ends up distracting you from your main task.

So how about clojure? I haven’t bothered looking up for the framework. One can tests results by using a combination of println and =, as it is shown in http://www.4clojure.com/ The basic pattern is shown below:

(println (= expected result))

This is all what you need to get going.  You don’t get a report and or nice feedback, but you get what you want right away. You can choose to learn about the testing frameworks later.