Created
February 2, 2011 23:57
-
-
Save mefesto/808773 to your computer and use it in GitHub Desktop.
clojure test example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns blah.test-mystuff | |
(:use clojure.test)) | |
(defn my-fixture [f] | |
(println "setup") | |
(f) | |
(println "tear down")) | |
(use-fixtures :each my-fixture) | |
(deftest mytest | |
(is (= 1 (+ 1 0)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment