aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-07 09:13:01 +0000
committerAleksey Kladov <[email protected]>2018-01-07 09:13:01 +0000
commitf797c81155e9b7371b24801efac3fcbd236fc9ab (patch)
tree27a2fd9e640962489e07d18b6225d3d30096bb39 /tests
parent8671a892c5169fe608d0467270a2af7797df8c36 (diff)
Smart eof for blocks
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 }