@@ -0,0 +1,313 @@
+import pytest%0Afrom parglare.parser import Parser%0Afrom .expression_grammar import get_grammar, E%0A%0A%0Adef test_tree_str():%0A%0A    grammar = get_grammar()%0A    p = Parser(grammar, E)%0A%0A    res = p.parse(%22%22%22id+  id * (id%0A    +id  )%0A    %22%22%22)%0A%0A    ts = res.tree_str()%0A%0A    assert '+%5B18, +%5D' in ts%0A    assert ')%5B23, )%5D' in ts%0A

Test parse tree printing.