Created
December 3, 2008 18:32
-
-
Save larrytheliquid/31635 to your computer and use it in GitHub Desktop.
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 clojure (:use specjure)) | |
(it + "without arguments returns 0" | |
(should = (+) 0)) | |
(it + "with a single argument returns the argument" | |
(should = 1 (+ 1)) | |
(should = 1337 (+ 1337))) | |
(it + "with multiple arguments returns the sum of the arguments" | |
(should = 6 (+ 1 2 3)) | |
(should = 5 (+ 10 -5))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment