Last active
April 8, 2016 19:13
-
-
Save becca-bailey/9b3e61742ad150bedd685c6b2abf6358 to your computer and use it in GitHub Desktop.
Speclj example
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
(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