Example #1
0
def test_1():
    assert fib_brute_force(1) == 1
    assert fib_cache(1) == 1
    assert fib_iterative(1) == 1
Example #2
0
def test_5():
    assert fib_cache(1) == 0
Example #3
0
def test_3(get_number):
    assert fib_iterative(get_number) == fib_cache(get_number)
Example #4
0
def test_4(n, output):
    assert fib_cache(n) == output
Example #5
0
def test_2():
    for i in range(15):
        output = {fib_iterative(i), fib_cache(i), fib_brute_force(i)}

        assert len(output) == 1