示例#1
0
    def test_it_can_take_range(self):
        response = super_fizz_buzz.compute(range=100)

        assert response[0] == "Plop"
        assert response[2] == "Fizz"
        assert response[4] == "Buzz"
        assert response[6] == "Super"
        assert response[14] == "FizzBuzz"
        assert response[20] == "SuperFizz"
        assert response[34] == "SuperBuzz"
示例#2
0
    def test_it_can_take_multiple_of_1(self):
        response = super_fizz_buzz.compute(1)

        assert response == "Plop"
示例#3
0
    def test_it_can_take_multiple_of_7(self):
        response = super_fizz_buzz.compute(7)

        assert response == "Super"
示例#4
0
    def test_it_can_take_multiple_of_3_5_and_7(self):
        response = super_fizz_buzz.compute(105)

        assert response == "SuperFizzBuzz"
示例#5
0
    def test_it_can_take_multiple_of_5(self):
        response = super_fizz_buzz.compute(5)

        assert response == "Buzz"