Skip to content

Instantly share code, notes, and snippets.

@larrytheliquid
Created December 3, 2008 18:22
Show Gist options
  • Save larrytheliquid/31633 to your computer and use it in GitHub Desktop.
Save larrytheliquid/31633 to your computer and use it in GitHub Desktop.
(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