Exemple #1
0
 def test_case_17(self):
     self.assertEqual(getNthFib(17), 987)
Exemple #2
0
 def test_case_15(self):
     self.assertEqual(getNthFib(15), 377)
Exemple #3
0
 def test_case_16(self):
     self.assertEqual(getNthFib(16), 610)
Exemple #4
0
 def test_case_13(self):
     self.assertEqual(getNthFib(13), 144)
Exemple #5
0
 def test_case_14(self):
     self.assertEqual(getNthFib(14), 233)
Exemple #6
0
 def test_case_3(self):
     self.assertEqual(getNthFib(3), 1)
Exemple #7
0
 def test_case_12(self):
     self.assertEqual(getNthFib(12), 89)
Exemple #8
0
 def test_case_9(self):
     self.assertEqual(getNthFib(9), 21)
Exemple #9
0
 def test_case_10(self):
     self.assertEqual(getNthFib(10), 34)
Exemple #10
0
 def test_case_7(self):
     self.assertEqual(getNthFib(7), 8)
Exemple #11
0
 def test_case_8(self):
     self.assertEqual(getNthFib(8), 13)
Exemple #12
0
 def test_case_6(self):
     self.assertEqual(getNthFib(6), 5)
Exemple #13
0
 def test_case_5(self):
     self.assertEqual(getNthFib(5), 3)
Exemple #14
0
 def test_case_4(self):
     self.assertEqual(getNthFib(4), 2)
Exemple #15
0
 def test_case_18(self):
     self.assertEqual(getNthFib(18), 1597)
Exemple #16
0
 def test_case_11(self):
     self.assertEqual(getNthFib(11), 55)
Exemple #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.")
Exemple #18
0
 def test_case_2(self):
     self.assertEqual(getNthFib(2), 1)