Exemple #1
0
 def test_two(self):
     self.assertEqual("1\n2", FizzBuzz.generate(2))
Exemple #2
0
 def test_one(self):
     self.assertEqual("1", FizzBuzz.generate(1))
Exemple #3
0
 def test_five(self):
     self.assertEqual("1\n2\nFizz\n4\nBuzz", FizzBuzz.generate(5))
Exemple #4
0
 def test_fifteen(self):
     self.assertEqual("1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz", FizzBuzz.generate(15))
Exemple #5
0
 def test_three(self):
     self.assertEqual("1\n2\nFizz", FizzBuzz.generate(3))