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