Skip to content

Instantly share code, notes, and snippets.

@mefesto
Created February 2, 2011 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mefesto/808773 to your computer and use it in GitHub Desktop.
Save mefesto/808773 to your computer and use it in GitHub Desktop.
clojure test example
(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