Exemple #1
0
def test_fib_raise():
    fib(-1)
    fib(3.6)
Exemple #2
0
def test_fib_ind():
    assert fib(3) == 2
    assert fib(6) == 9
def test_fib_raise(n):
    # Will fail the test UNLESS
    # a ValueError is raised
    with pytest.raises(ValueError):
        fib(n)
Exemple #4
0
def test_fib_base():
    assert fib(0) == 0
    assert fib(1) == 1
def test_fib_ind(arg, val):
    assert fib(arg) == val