Skip to content

Instantly share code, notes, and snippets.

@becca-bailey
Last active April 8, 2016 19:13
Show Gist options
  • Save becca-bailey/9b3e61742ad150bedd685c6b2abf6358 to your computer and use it in GitHub Desktop.
Save becca-bailey/9b3e61742ad150bedd685c6b2abf6358 to your computer and use it in GitHub Desktop.
Speclj example
(describe "coin changer"
(describe "make-change"
(it "returns an empty collection if 0 cents are given"
(should= (make-change 0) []))
(it "returns a penny if 1 cents are given"
(should= (make-change 1) [1]))
(it "returns two pennies if 2 cents are given"
(should= (make-change 2) [1 1]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment