예제 #1
0
def test__partition():
    assert _partition('abcde', [1, 0, 1, 2, 0]) == [['b', 'e'], ['a', 'c'],
                                                    ['d']]
    assert _partition('abcde', [1, 0, 1, 2, 0], 3) == [['b', 'e'], ['a', 'c'],
                                                       ['d']]
    output = (3, [1, 0, 1, 2, 0])
    assert _partition('abcde', *output) == [['b', 'e'], ['a', 'c'], ['d']]
예제 #2
0
def test__partition():
    assert _partition('abcde', [1, 0, 1, 2, 0]) == [
        ['b', 'e'], ['a', 'c'], ['d']]
    assert _partition('abcde', [1, 0, 1, 2, 0], 3) == [
        ['b', 'e'], ['a', 'c'], ['d']]
    output = (3, [1, 0, 1, 2, 0])
    assert _partition('abcde', *output) == [['b', 'e'], ['a', 'c'], ['d']]
예제 #3
0
def test__partition():
    assert _partition("abcde", [1, 0, 1, 2, 0]) == [["b", "e"], ["a", "c"], ["d"]]
    assert _partition("abcde", [1, 0, 1, 2, 0], 3) == [["b", "e"], ["a", "c"], ["d"]]
    output = (3, [1, 0, 1, 2, 0])
    assert _partition("abcde", *output) == [["b", "e"], ["a", "c"], ["d"]]
예제 #4
0
def test__partition():
    assert _partition("abcde", [1, 0, 1, 2, 0]) == [["b", "e"], ["a", "c"], ["d"]]
    assert _partition("abcde", [1, 0, 1, 2, 0], 3) == [["b", "e"], ["a", "c"], ["d"]]
    output = (3, [1, 0, 1, 2, 0])
    assert _partition("abcde", *output) == [["b", "e"], ["a", "c"], ["d"]]