Exemplo n.º 1
0
def test_parse_ill_2(ill_2):
    account = parse(ill_2)
    assert account.status is Status.ILL and account.numbers == [
        1,
        2,
        3,
        4,
        -1,
        6,
        7,
        8,
        -1,
    ]
Exemplo n.º 2
0
def test_parse_ill_1(ill_1):
    account = parse(ill_1)
    assert account.status is Status.ILL and account.numbers == [
        4,
        9,
        0,
        8,
        6,
        7,
        7,
        1,
        -1,
    ]
Exemplo n.º 3
0
def test_parse_advanced_err(input_str, alternatives):
    account = parse(input_str)
    assert (
        account.status is Status.ERR
        and sorted(account.alternatives) == alternatives
    )
Exemplo n.º 4
0
def test_parse_advanced_ill(input_str, alternatives):
    account = parse(input_str)
    assert (
        account.status is Status.ILL and account.alternatives == alternatives
    )
Exemplo n.º 5
0
def test_parse_err(err):
    account = parse(err)
    assert account.status is Status.ERR
Exemplo n.º 6
0
def test_parse_check(fifty_one):
    account = parse(fifty_one)
    assert account.status is Status.OK
Exemplo n.º 7
0
def test_parse_use_cases_1(input_str, parsed_numbers):
    assert parse(input_str).numbers == parsed_numbers