Make them just pass by if/else statements. then the code will be repetitive due to the if/else, so refactor it so that it returns Buzz for a 5 else returns Fizz.
This will make it pass for any other number all the way to 10. (6..9 - will pass as well)
Then let them go off and solve the other part of it? (include FizzBuzz)
What are your thoughts, should we take them all the way to five tests or three tests should be ok?
Hey @skibinska, Awesome work on the TDD Fizzbuzz challenge.
I am thinking that we can add to the three tests that you've done and follow it through to five:
Make them just pass by
if/else
statements. then the code will be repetitive due to theif/else
, so refactor it so that it returns Buzz for a 5 else returns Fizz. This will make it pass for any other number all the way to 10. (6..9 - will pass as well)Then let them go off and solve the other part of it? (include FizzBuzz)
What are your thoughts, should we take them all the way to five tests or three tests should be ok?