def test_segment_should_return_all_candidates(): assert set(segment(("a", "-b", "c"), { "x": "a", "y": ("b", "-c"), "-z": ("b", "-c"), })) == { ("x", "-y"), ("x", "z"), }
def segment_should_return_all_candidates(): assert list(segment(("a", "-b", "c"), { "x": ("a"), "y": ("b", "-c"), "-z": ("b", "-c"), })) == [ ["x", "-y"], ["x", "z"], ]
def test_should_return_all_candidates(self): assert set(segment(('a', '-b', 'c'), { 'x': 'a', 'y': ('b', '-c'), '-z': ('b', '-c'), })) == { ('x', '-y'), ('x', 'z'), }
def test_segment_should_return_all_candidates(): assert set(segment(("a", "-b", "c"), { 'x': 'a', 'y': ('b', '-c'), '-z': ('b', '-c'), })) == { ('x', '-y'), ('x', 'z'), }
def test_segment_should_return_all_candidates(): assert set( segment(("a", "-b", "c"), { 'x': 'a', 'y': ('b', '-c'), '-z': ('b', '-c'), })) == { ('x', '-y'), ('x', 'z'), }
def segment_should_return_all_candidates(): assert list( segment(("a", "-b", "c"), { "x": ("a"), "y": ("b", "-c"), "-z": ("b", "-c"), })) == [ ["x", "-y"], ["x", "z"], ]