Minicheck is an implementation of QuickCheck in clojure that runs with clojure.test.
Refer to the example which is a port of the quicksort example from Chapter 11 of Real World Haskell
- Copy minicheck.clj into your project
- Install leiningen
- Add minicheck to your project.clj (defproject your-project "0.0.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.1.0-alpha-SNAPSHOT"] [org.clojure/clojure-contrib "1.0-SNAPSHOT"]] :dev-dependencies [[minicheck "0.3.0"]])
- Run with: lein test