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