def test_default_pddl_visitor_problem(): defaultVisitor = pddl_tree_visitor.PDDLVisitor() input = _problem_input.split("\n") iter = parse_lisp_iterator(input) probAST = parse_problem_def(iter) # and traverse the AST probAST.accept(defaultVisitor)
def test_default_pddl_visitor_domain(): defaultVisitor = pddl_tree_visitor.PDDLVisitor() input = _domain_input.split("\n") iter = parse_lisp_iterator(input) domAST = parse_domain_def(iter) # and traverse the AST domAST.accept(defaultVisitor)