MCPcopy Create free account
hub / github.com/python/cpython / test_permute_left_option_groups

Method test_permute_left_option_groups

Lib/test/test_clinic.py:4442–4451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4440 """Test permutation support functions."""
4441
4442 def test_permute_left_option_groups(self):
4443 expected = (
4444 (),
4445 (3,),
4446 (2, 3),
4447 (1, 2, 3),
4448 )
4449 data = list(zip([1, 2, 3])) # Generate a list of 1-tuples.
4450 actual = tuple(permute_left_option_groups(data))
4451 self.assertEqual(actual, expected)
4452
4453 def test_permute_right_option_groups(self):
4454 expected = (

Callers

nothing calls this directly

Calls 3

listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected