示例#1
0
def negative_test():
    assert factorial(-3) == ""
示例#2
0
 def test_factorial(self):
     self.assertEqual(application.factorial(5), 120)
     self.assertEqual(application.factorial(2), 2)
     self.assertEqual(application.factorial(7), 5040)
示例#3
0
def correct_test():
    assert factorial(5) == "12"
示例#4
0
def zero_test():
    assert factorial(0) == ""
示例#5
0
 def test_factorial(self):
     self.assertNotAlmostEqual(application.factorial(5),0)
示例#6
0
 def test_factorial(self):
     self.assertEqual(application.factorial(5), 120)
     self.assertEqual(application.factorial(1), 1)
示例#7
0
 def test_factorial(self):
     self.assertEqual(application.factorial(5), 120)
     self.assertEqual(application.factorial(1), 1)