Practicing TDD with a simple ruby kata.
- Returns fizz when passed multiples of 3
- Returns buzz when passed multiples of 5
- Returns fizzbuzz when passed multiples of 3 and 5
- Otherwise returns number
run fizzbuzz(integer) to return "fizz", "buzz", "fizzbuzz" or the number.
Example:
$ irb -r ./lib/fizzbuzz.rb
fizzbuzz(3)
=> "fizz"
fizzbuzz(5)
=> "buzz"
fizzbuzz(15)
=> "fizzbuzz"
fizzbuzz(7)
=> 7