Beispiel #1
0
def test_fizz_buzz_fizzbuzz():
    expected_result = [
        '1', '2', 'fizz', '4', 'buzz', 'fizz', '7', '8', 'fizz', 'buzz', '11',
        'fizz', '13', '14', 'fizzbuzz'
    ]
    result = fizz_buzz(15)
    assert expected_result == result
Beispiel #2
0
def test_fizz_buzz_one():
    expected_result = ['1', '2']
    result = fizz_buzz(2)
    assert expected_result == result
Beispiel #3
0
def test_fizz_buzz_buzz():
    expected_result = ['1', '2', 'fizz', '4', 'buzz']
    result = fizz_buzz(5)
    assert expected_result == result
Beispiel #4
0
def test_fizz_buzz_zero():
    expected_result = ['1']
    result = fizz_buzz(1)
    assert expected_result == result