def test_fib_raise(): fib(-1) fib(3.6)
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)
def test_fib_base(): assert fib(0) == 0 assert fib(1) == 1
def test_fib_ind(arg, val): assert fib(arg) == val