예제 #1
0
	def test_solution(self):
		self.assertEqual(1, nthFib(1))
		self.assertEqual(1, nthFib(2))
		self.assertEqual(2, nthFib(3))
		self.assertEqual(55, nthFib(10))
예제 #2
0
 def test_solution(self):
     self.assertEqual(1, nthFib(1))
     self.assertEqual(1, nthFib(2))
     self.assertEqual(2, nthFib(3))
     self.assertEqual(55, nthFib(10))
예제 #3
0
 def test_fib1(self):
     result = nthFib(1)
     self.assertEqual(1, result)
예제 #4
0
 def test_fib10(self):
     result = nthFib(10)
     self.assertEqual(55, result)
예제 #5
0
 def test_fib3(self):
     result = nthFib(3)
     self.assertEqual(2, result)
예제 #6
0
 def test_fib2(self):
     result = nthFib(2)
     self.assertEqual(2, result)