Lines Matching refs:comb
282 [e for e in values if e in c]) # comb is a subsequence of the input iterable
370 [e for e in values if e in c]) # comb is a subsequence of the input iterable
472 comb = list(combinations(s, r))
478 self.assertEqual(len(comb), 0 if r>n else fact(n) / fact(r) / fact(n-r))
484 self.assertEqual(comb, sorted(set(comb)))
489 self.assertEqual(comb, [t for t in perm if sorted(t)==list(t)]) # comb: perms that are sorted
490 self.assertEqual(comb, [t for t in cwr if len(set(t))==r]) # comb: cwrs without dups
491 self.assertEqual(comb, list(filter(set(cwr).__contains__, perm))) # comb: perm that is a cwr
492 self.assertEqual(comb, list(filter(set(perm).__contains__, cwr))) # comb: cwr that is a perm
493 self.assertEqual(comb, sorted(set(cwr) & set(perm))) # comb: both a cwr and a perm