Exemple #1
0
 def test05(self):
     self.assertEqual(hw4_pascal.pascal_row((3)), [1, 3, 3, 1])
Exemple #2
0
 def test04(self):
     self.assertEqual(hw4_pascal.pascal_row((5)), [1, 5, 10, 10, 5, 1])
Exemple #3
0
 def test02(self):
     self.assertEqual(hw4_pascal.pascal_row((0)), [1])
Exemple #4
0
 def test03(self):
     self.assertEqual(hw4_pascal.pascal_row((1)), [1, 1])
Exemple #5
0
 def test01(self):
     self.assertEqual(hw4_pascal.pascal_row(-1), float("inf"))