def test_emit_empty_list(self): assert emit(list_node([])) == []
def test_parse_embedded_list(self): assert parse(["l", "l", "e", "e"]) == list_node([list_node([])])
def test_parse_triply_embedded_list(self): expected = list_node([list_node([list_node([])])]) assert parse(["l", "l", "l", "e", "e", "e"]) == expected
def test_parse_empty_list(self): assert parse(["l", "e"]) == list_node([])
def test_parse_list_with_integer(self): expected = list_node([]) expected.children.append(node("i0e")) assert parse(["l", "i0e", "e"]) == expected