예제 #1
0
 def test_zero(self):
     self.assertEqual(1, factorial(0))
예제 #2
0
 def test_n(self):
     self.assertEqual(120, factorial(5))
예제 #3
0
 def test_one(self):
     self.assertEqual(1, factorial(1))