Created
November 16, 2011 10:47
-
-
Save skuro/1369799 to your computer and use it in GitHub Desktop.
BDD in clojure
This file contains hidden or 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 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