Esempio n. 1
0
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"),
    }
Esempio n. 2
0
def segment_should_return_all_candidates():
    assert list(segment(("a", "-b", "c"), {
            "x": ("a"),
            "y": ("b", "-c"),
            "-z": ("b", "-c"),
        })) == [
            ["x", "-y"],
            ["x", "z"],
        ]
Esempio n. 3
0
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"),
    }
Esempio n. 4
0
 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'),
     }
Esempio n. 5
0
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'),
    }
Esempio n. 6
0
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'),
        }
Esempio n. 7
0
def segment_should_return_all_candidates():
    assert list(
        segment(("a", "-b", "c"), {
            "x": ("a"),
            "y": ("b", "-c"),
            "-z": ("b", "-c"),
        })) == [
            ["x", "-y"],
            ["x", "z"],
        ]