예제 #1
0
 def test_case_17(self):
     self.assertEqual(getNthFib(17), 987)
예제 #2
0
 def test_case_15(self):
     self.assertEqual(getNthFib(15), 377)
예제 #3
0
 def test_case_16(self):
     self.assertEqual(getNthFib(16), 610)
예제 #4
0
 def test_case_13(self):
     self.assertEqual(getNthFib(13), 144)
예제 #5
0
 def test_case_14(self):
     self.assertEqual(getNthFib(14), 233)
예제 #6
0
 def test_case_3(self):
     self.assertEqual(getNthFib(3), 1)
예제 #7
0
 def test_case_12(self):
     self.assertEqual(getNthFib(12), 89)
예제 #8
0
 def test_case_9(self):
     self.assertEqual(getNthFib(9), 21)
예제 #9
0
 def test_case_10(self):
     self.assertEqual(getNthFib(10), 34)
예제 #10
0
 def test_case_7(self):
     self.assertEqual(getNthFib(7), 8)
예제 #11
0
 def test_case_8(self):
     self.assertEqual(getNthFib(8), 13)
예제 #12
0
 def test_case_6(self):
     self.assertEqual(getNthFib(6), 5)
예제 #13
0
 def test_case_5(self):
     self.assertEqual(getNthFib(5), 3)
예제 #14
0
 def test_case_4(self):
     self.assertEqual(getNthFib(4), 2)
예제 #15
0
 def test_case_18(self):
     self.assertEqual(getNthFib(18), 1597)
예제 #16
0
 def test_case_11(self):
     self.assertEqual(getNthFib(11), 55)
예제 #17
0
 def test_nth_fibonacci(self):
     self.assertEqual(getNthFib(2), 1)
     self.assertEqual(getNthFib(4), 2)
     self.assertEqual(getNthFib(6), 5)
     self.assertEqual(getNthFib(0),
                      f"Sorry. Please pass an input value greater than 0.")
예제 #18
0
 def test_case_2(self):
     self.assertEqual(getNthFib(2), 1)