コード例 #1
0
 def test_binomial_coefficient_n8m3(self):
     n = 8
     m = 3
     res = binomial_coefficient(n, m)
     self.assertEqual(res,56)
コード例 #2
0
 def test_binomial_coefficient_n5m2(self):
     n = 5
     m = 2
     res = binomial_coefficient(n, m)
     self.assertEqual(res,10)