Exemplo n.º 1
0
 def test_5_choose_2(self):
     self.assertEqual(wordlib.combinations(5, 2), 10)
Exemplo n.º 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)
Exemplo n.º 3
0
 def test_5_choose_1(self):
     self.assertEqual(wordlib.combinations(5, 1), 5)