示例#1
0
 def test_lucas_memo_fail_3(self):
     actual = lucas_memo(22)
     expected = 22
     assert actual != expected
示例#2
0
 def test_lucas_memo_fail_1(self):
     actual = lucas_memo(3)
     expected = 2
     assert actual != expected
示例#3
0
 def test_lucas_memo_fail_2(self):
     actual = lucas_memo(-1)
     expected = -1
     assert actual != expected
示例#4
0
 def test_lucas_memo_pass_5(self):
     actual = lucas_memo(-1)
     expected = 'Number must be greater that 0'
     assert actual == expected
示例#5
0
 def test_lucas_memo_pass_4(self):
     actual = lucas_memo(1)
     expected = 2
     assert actual == expected
示例#6
0
 def test_lucas_memo_pass_3(self):
     actual = lucas_memo(22)
     expected = 24476
     assert actual == expected
示例#7
0
 def test_lucas_memo_pass_2(self):
     actual = lucas_memo(7)
     expected = 18
     assert actual == expected
示例#8
0
 def test_lucas_memo_pass_1(self):
     actual = lucas_memo(3)
     expected = 3
     assert actual == expected