Solve Fizz buzz problem using tdd.
https://en.wikipedia.org/wiki/Test-driven_development
Summary
- Add a test
- Run all tests. The new test should fail for expected reasons
- Write the simplest code that passes the new test
- All tests should now pass
- Refactor as needed, using tests after each refactor to ensure that functionality is preserved
- Repeat
https://en.wikipedia.org/wiki/Fizz_buzz
Tasks
- Use TDD process create an application that solve the problem. NOTE: USE THE REFACTOR STEPS TO IMPROVE YOU APPLICATION DESIGN.
- If the input is a single position, print the corresponding value.
value at position '<pos>' is: <value>
- If the inputs are 2 positions, print the corresponding values between those position (including them)
values between position1 <pos1> and position2 <pos2> are: <value1>, <value2>, ...
- If input is "all" , print all the values until that position
values up to position '<pos>' are: <value1>, <value2>, ...