diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/benches.rs | 7 | ||||
| -rw-r--r-- | tests/typ/math/syntax.typ | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index ff61c32f..e76f3c76 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -5,7 +5,7 @@ use iai::{black_box, main, Iai}; use typst::diag::{FileError, FileResult}; use typst::font::{Font, FontBook}; use typst::model::Library; -use typst::syntax::{LexMode, Lexer, Source, SourceId}; +use typst::syntax::{Source, SourceId}; use typst::util::Buffer; use typst::World; use unscanny::Scanner; @@ -16,7 +16,6 @@ const FONT: &[u8] = include_bytes!("../fonts/IBMPlexSans-Regular.ttf"); main!( bench_decode, bench_scan, - bench_lex, bench_parse, bench_edit, bench_eval, @@ -49,10 +48,6 @@ fn bench_scan(iai: &mut Iai) { }) } -fn bench_lex(iai: &mut Iai) { - iai.run(|| Lexer::new(black_box(TEXT), black_box(LexMode::Markup)).count()); -} - fn bench_parse(iai: &mut Iai) { iai.run(|| typst::syntax::parse(TEXT)); } diff --git a/tests/typ/math/syntax.typ b/tests/typ/math/syntax.typ index 72b4b7c2..37ea2de7 100644 --- a/tests/typ/math/syntax.typ +++ b/tests/typ/math/syntax.typ @@ -24,5 +24,5 @@ $ A sub:eq:not B $ <table> --- -// Error: 8 expected closing paren +// Error: 8 expected math atom $ sum_( $ |
