Exemplo n.º 1
0
def test_1():
    assert fib_brute_force(1) == 1
    assert fib_cache(1) == 1
    assert fib_iterative(1) == 1
Exemplo n.º 2
0
def test_5():
    assert fib_cache(1) == 0
Exemplo n.º 3
0
def test_3(get_number):
    assert fib_iterative(get_number) == fib_cache(get_number)
Exemplo n.º 4
0
def test_4(n, output):
    assert fib_cache(n) == output
Exemplo n.º 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