Ejemplo n.º 1
0
 def test_10(self):
     from phenum.numerics import factorial
     num = 0
     out = 1
     self.assertEqual(factorial(num),out)
Ejemplo n.º 2
0
 def test_8(self):
     from phenum.numerics import factorial
     num = 7
     out = 5040
     self.assertEqual(factorial(num),out)
Ejemplo n.º 3
0
 def test_9(self):
     from phenum.numerics import factorial
     num = 2
     out = 2
     self.assertEqual(factorial(num),out)
Ejemplo n.º 4
0
 def test_6(self):
     from phenum.numerics import factorial
     num = 27
     out = 10888869450418352160768000000
     self.assertEqual(factorial(num),out)
Ejemplo n.º 5
0
 def test_7(self):
     from phenum.numerics import factorial
     num = 33
     out = 8683317618811886495518194401280000000
     self.assertEqual(factorial(num),out)
Ejemplo n.º 6
0
 def test_4(self):
     from phenum.numerics import factorial
     num = 42
     out = 1405006117752879898543142606244511569936384000000000
     self.assertEqual(factorial(num),out)
Ejemplo n.º 7
0
 def test_5(self):
     from phenum.numerics import factorial
     num = 15
     out = 1307674368000
     self.assertEqual(factorial(num),out)
 def test_10(self):
     from phenum.numerics import factorial
     num = 0
     out = 1
     self.assertEqual(factorial(num), out)
Ejemplo n.º 9
0
 def test_3(self):
     from phenum.numerics import factorial
     num = 9
     out = 362880
     self.assertEqual(factorial(num),out)
Ejemplo n.º 10
0
 def test_8(self):
     from phenum.numerics import factorial
     num = 7
     out = 5040
     self.assertEqual(factorial(num), out)
Ejemplo n.º 11
0
 def test_9(self):
     from phenum.numerics import factorial
     num = 2
     out = 2
     self.assertEqual(factorial(num), out)
Ejemplo n.º 12
0
 def test_7(self):
     from phenum.numerics import factorial
     num = 33
     out = 8683317618811886495518194401280000000
     self.assertEqual(factorial(num), out)
Ejemplo n.º 13
0
 def test_6(self):
     from phenum.numerics import factorial
     num = 27
     out = 10888869450418352160768000000
     self.assertEqual(factorial(num), out)
Ejemplo n.º 14
0
 def test_5(self):
     from phenum.numerics import factorial
     num = 15
     out = 1307674368000
     self.assertEqual(factorial(num), out)
Ejemplo n.º 15
0
 def test_4(self):
     from phenum.numerics import factorial
     num = 42
     out = 1405006117752879898543142606244511569936384000000000
     self.assertEqual(factorial(num), out)
Ejemplo n.º 16
0
 def test_3(self):
     from phenum.numerics import factorial
     num = 9
     out = 362880
     self.assertEqual(factorial(num), out)