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