Exemplo n.º 1
0
def test_count_hello():
    assert count_longest( Queue( [ l for l in "hello" ] ) ) == 2
Exemplo n.º 2
0
def test_count_m5():
    assert count_longest(Queue([l for l in "m" * 5])) == 5
Exemplo n.º 3
0
def test_count_m1():
    assert count_longest(Queue([l for l in "m"])) == 1
Exemplo n.º 4
0
def test_count_sym():
    assert count_longest(Queue([l for l in "+__--___----__--_+"])) == 4
Exemplo n.º 5
0
def test_count_empty():
    assert count_longest(Queue([ ])) == 0
Exemplo n.º 6
0
def test_count_e6():
    assert count_longest(Queue([l for l in "oooohhhhhaaeeeeee"])) == 6
Exemplo n.º 7
0
def test_count_e5():
    assert count_longest(Queue([l for l in "oooohheeeee"])) == 5
Exemplo n.º 8
0
def test_count_o4():
    assert count_longest(Queue([l for l in "oooohh"])) == 4
Exemplo n.º 9
0
def test_count_o3():
    assert count_longest(Queue([l for l in "hooop"])) == 3