O'Reilly logo

Clojure for Domain-specific Languages by Kelker Ryan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The expectations framework

The expectations framework is an alternative to the clojure.test framework and is self-described as a minimalist unit testing framework. You can get the full documentation at http://jayfields.com/expectations/.

If you're using the Leiningen utility, you can add the following to the :dependencies configuration in your project.clj file and run the lein deps command:

[expectations "1.4.49"]

If done correctly, your project.clj file should look like the following:

(defproject tdsl "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.twitter4j/twitter4j-core ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required