Skip to content

Instantly share code, notes, and snippets.

@larrytheliquid
Created December 3, 2008 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larrytheliquid/31635 to your computer and use it in GitHub Desktop.
Save larrytheliquid/31635 to your computer and use it in GitHub Desktop.
(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