diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-30 11:16:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-30 11:16:57 +0100 |
| commit | d7072f378fef733ae994fd9a1e767df4e4dd878e (patch) | |
| tree | 4deb3fad5a12c016d330b9c589a3a394d1fff689 /tests | |
| parent | aeb036f4dc2ede271d6c0710e91fae605ecdac84 (diff) | |
Also debug print syntax tree
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typeset.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index ac911401..5437860b 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -261,6 +261,9 @@ fn test_part( ) -> (bool, bool, Vec<Rc<Frame>>) { let id = ctx.sources.provide(src_path, src); let source = ctx.sources.get(id); + if debug { + println!("Syntax: {:#?}", source.root()) + } let (local_compare_ref, mut ref_errors) = parse_metadata(&source); let compare_ref = local_compare_ref.unwrap_or(compare_ref); @@ -270,7 +273,7 @@ fn test_part( Ok(module) => { let tree = module.into_root(); if debug { - println!("{tree:#?}"); + println!("Layout: {tree:#?}"); } let mut frames = tree.layout(ctx); |
