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