Created
December 31, 2016 15:25
-
-
Save deque-blog/5e27313239d75ff1eb036f19398f4be6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
testCases :: [(Int, String)] | |
testCases = [ (0, "0"), (1, "1"), (3, "Fizz"), (5, "Buzz") | |
, (7, "7"), (15, "FizzBuzz"), (100, "Buzz")] | |
tests :: Test | |
tests = TestList $ map createTestCase testCases | |
where | |
createTestCase (input, expected) = | |
let label = "FizzBuzz of " ++ show input | |
in TestCase $ assertEqual label expected (fizzBuzz input) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment