Skip to content

Instantly share code, notes, and snippets.

@skuro
Created November 16, 2011 10:47
Show Gist options
  • Select an option

  • Save skuro/1369799 to your computer and use it in GitHub Desktop.

Select an option

Save skuro/1369799 to your computer and use it in GitHub Desktop.
BDD in clojure
(ns test
(:use [lazytest.describe :only (describe it)]))
(defn sorter [seq]
(sort seq))
(describe sorter "A sorter"
(it "should return the given array in sorted order"
(= [1 2 3 4 5] (sorter [5 2 4 2 3])))
(it "should not throw any exception if the given array is empty"
(sort [])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment