Пример #1
0
 def test_5_choose_2(self):
     self.assertEqual(wordlib.combinations(5, 2), 10)
Пример #2
0
 def test_n_choose_n(self):
     """
     This case is part of why combinations are much faster.
     """
     self.assertEqual(wordlib.combinations(5, 5), 1)
Пример #3
0
 def test_5_choose_1(self):
     self.assertEqual(wordlib.combinations(5, 1), 5)