A lot of developers skip the test making process or never take the time to learn how to create tests. So let's change that real quick and focus on testing for the day. Fizzbuzz is a simple program, you can read about it at http://en.wikipedia.org/wiki/Fizz_buzz#Other_uses. Today's objective is to implement it in the programming language of your choice, then using a testing suite or just plain asserts right some test cases.
To add some more clarification. Your function should take in a lower bound and an upper bound. Print fizz if divisble by 3, 5 for divisible by buzz, fizzbuzz if both, or just the number otherwise. The test suite should try different upper and lower bounds.
Comments:
Anonymous - 9 years, 11 months ago
Python
reply permalink
David - 9 years ago
This is fizzbuzz, but it does not include the test element of the Problem presented.
reply permalink