示例#1
0
 def test_iterative_thirty(self):
     self.assertEqual(iterative_fib(30), recursive_fib(30)) 
示例#2
0
 def test_iterative_twenty(self):
     self.assertEqual(iterative_fib(20), recursive_fib(20))
示例#3
0
 def test_iterative_one(self):
     self.assertEqual(iterative_fib(1), recursive_fib(0))
示例#4
0
 def test_iterative_twelve(self):
     self.assertEqual(iterative_fib(12), recursive_fib(12))
示例#5
0
 def test_iterative_zero(self):
     self.assertEqual(iterative_fib(0), recursive_fib(0))