Beispiel #1
0
 def test_fibo_large(self):
     assert mathlib.fibo(30) == 832040 
Beispiel #2
0
 def test_fibo_invalid(self):
     with pytest.raises(TypeError):
         mathlib.fibo("haha")
Beispiel #3
0
 def test_fibo_success(self, n, result):
     assert mathlib.fibo(n) == result
Beispiel #4
0
 def test_fibo_zero(self):
     assert mathlib.fibo(0) == 0
Beispiel #5
0
 def test_fibo(self):
     assert mathlib.fibo(1) == 1
     assert mathlib.fibo(2) == 1