aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/parser.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/parser.rs b/tests/parser.rs
index 6c31463ad..7fde365c9 100644
--- a/tests/parser.rs
+++ b/tests/parser.rs
@@ -61,8 +61,12 @@ fn dump_tree(file: &File) -> String {
61 61
62 fn go(node: Node, buff: &mut String, level: usize) { 62 fn go(node: Node, buff: &mut String, level: usize) {
63 buff.push_str(&String::from(" ").repeat(level)); 63 buff.push_str(&String::from(" ").repeat(level));
64 write!(buff, "{:?}\n", node) 64 write!(buff, "{:?}", node).unwrap();
65 .unwrap(); 65 for err in node.errors() {
66 write!(buff, " err: `{}`", err.message()).unwrap();
67 }
68 write!(buff, "\n").unwrap();
69
66 for child in node.children() { 70 for child in node.children() {
67 go(child, buff, level + 1) 71 go(child, buff, level + 1)
68 } 72 }