Created
December 3, 2008 18:22
-
-
Save larrytheliquid/31633 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)) | |
(describe + "without arguments" | |
(it "returns 0" | |
(should = 0 (+)))) | |
(describe + "with a single argument" | |
(it "returns the argument" | |
(should = 1 (+ 1)) | |
(should = 1337 (+ 1337)))) | |
(describe + "with multiple arguments" | |
(it "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