Skip to content

Commit

Permalink
fix(Automattic#230): remove debug print of typst ast in test
Browse files Browse the repository at this point in the history
  • Loading branch information
grantlemons committed Dec 9, 2024
1 parent c63d41a commit f57d6c2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions harper-core/src/parsers/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,6 @@ mod tests {
let token_kinds = tokens.iter().map(|t| t.kind).collect::<Vec<_>>();
dbg!(&token_kinds);

let typst_document = typst_syntax::Source::detached(source);
let typst_tree = <typst_syntax::ast::Markup as typst_syntax::ast::AstNode>::from_untyped(
typst_document.root(),
)
.expect("Unable to create typst document from parsed tree!");
dbg!(typst_tree.exprs().collect_vec());

let charslice = source.chars().collect_vec();
assert_eq!(tokens[3].span.get_content_string(&charslice), "Typst");
assert!(matches!(
Expand Down

0 comments on commit f57d6c2

Please sign in to comment.