Exemple #1
0
 def test_fib_memo_fail_1(self):
     actual = fib_memo(3)
     expected = 3
     assert actual != expected
Exemple #2
0
 def test_fib_memo_pass_4(self):
     actual = fib_memo(0)
     expected = 0
     assert actual == expected
Exemple #3
0
 def test_fib_memo_pass_5(self):
     actual = fib_memo(-1)
     expected = 'Number must be positive'
     assert actual == expected
Exemple #4
0
 def test_fib_memo_pass_3(self):
     actual = fib_memo(22)
     expected = 17711
     assert actual == expected
Exemple #5
0
 def test_fib_memo_pass_2(self):
     actual = fib_memo(7)
     expected = 13
     assert actual == expected
Exemple #6
0
 def test_fib_memo_pass_1(self):
     actual = fib_memo(3)
     expected = 2
     assert actual == expected
Exemple #7
0
 def test_fib_memo_fail_3(self):
     actual = fib_memo(22)
     expected = 22
     assert actual != expected
Exemple #8
0
 def test_fib_memo_fail_2(self):
     actual = fib_memo(-1)
     expected = -1
     assert actual != expected