Exemplo n.º 1
0
 def can_play_fizzbuzz():
 """Demonstrate that we can generate the correct output
 for a minimal test case of the actual FizzBuzz game.
 """
     assert play_fizzbuzz(1, 15) == [
         1, 2, 'Fizz', 4, 'Buzz', 'Fizz', 7 , 8, 'Fizz', 'Buzz', 11, 'Fizz', 13, 14, 'FizzBuzz'
     ]
Exemplo n.º 2
0
from fizzbuzz import play_fizzbuzz
print(play_fizzbuzz(1, 100))