diff options
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/benches.rs | 4 | ||||
| -rw-r--r-- | tests/src/tests.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index 1ae012eb..4cd7d9c3 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -10,7 +10,7 @@ use typst::util::Buffer; use typst::World; use unscanny::Scanner; -const TEXT: &str = include_str!("../typ/benches/bench.typ"); +const TEXT: &str = include_str!("../typ/compiler/bench.typ"); const FONT: &[u8] = include_bytes!("../fonts/IBMPlexSans-Regular.ttf"); main!( @@ -111,7 +111,7 @@ impl BenchWorld { let book = FontBook::from_fonts([&font]); Self { - library: Prehashed::new(typst_library::new()), + library: Prehashed::new(typst_library::build()), book: Prehashed::new(book), font, source: Source::detached(TEXT), diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 215d7fe7..e7c630f6 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -145,7 +145,7 @@ impl Args { } fn library() -> Library { - let mut lib = typst_library::new(); + let mut lib = typst_library::build(); // Set page width to 120pt with 10pt margins, so that the inner page is // exactly 100pt wide. Page height is unbounded and font size is 10pt so |
