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