Beispiel #1
0
def test_parse_partial():
    node = Node("$", "123")
    given = [node, node]
    with pytest.raises(ValueError):
        parse(term("$"), given)
Beispiel #2
0
def test_parse():
    node = Node("$", "123")
    given = [node]
    after = [node]
    assert parse(term("$"), given) == after