Exemplo n.º 1
0
def test_generate_fibo_term():
    assert generate_fibo(5) == [0,1,1,2],"Function not generating correct terms"
Exemplo n.º 2
0
def test_generate_fibo_term():
    with pytest.raises(TypeError) as error:
        return generate_fibo(-0.1)
Exemplo n.º 3
0
def test_generate_fibo_length():
    assert len(generate_fibo(5))==5,"Function not generating correct number of terms"