示例#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)