Exemple #1
0
 def test_sterling_second_10(self):
     self.assertEqual(42525, combinatorics.sterling_second(10, 5))
Exemple #2
0
 def test_sterling_second_4(self):
     self.assertEqual(7, combinatorics.sterling_second(4, 2))
Exemple #3
0
 def test_sterling_second_0_any_n(self):
     self.assertEqual(0, combinatorics.sterling_second(4, 0))
Exemple #4
0
 def test_sterling_second_2(self):
     self.assertEqual(1, combinatorics.sterling_second(2, 2))
Exemple #5
0
 def test_sterling_second_0(self):
     self.assertEqual(1, combinatorics.sterling_second(0, 0))