コード例 #1
0
def test_fib_iteration_seven():
    actual = fibonacci_iteration(7)
    expected = 13
    assert actual == expected
コード例 #2
0
def test_fib_iteration_five():
    actual = fibonacci_iteration(5)
    expected = 5
    assert actual == expected
コード例 #3
0
def test_fib_iteration_six():
    actual = fibonacci_iteration(6)
    expected = 8
    assert actual == expected
コード例 #4
0
def test_fib_iteration_four():
    actual = fibonacci_iteration(4)
    expected = 3
    assert actual == expected
コード例 #5
0
def test_fib_iteration_three():
    actual = fibonacci_iteration(3)
    expected = 2
    assert actual == expected
コード例 #6
0
def test_fib_iteration_two():
    actual = fibonacci_iteration(2)
    expected = 1
    assert actual == expected
コード例 #7
0
def test_fib_iteration_one():
    actual = fibonacci_iteration(1)
    expected = 1
    assert actual == expected
コード例 #8
0
def test_fib_iteration_zero():
    actual = fibonacci_iteration(0)
    expected = 0
    assert actual == expected