From 0efe669278a5e1c3f2985eba2f3360e91159c54a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 29 Nov 2022 13:37:25 +0100 Subject: Reorganize library and tests --- tests/src/benches.rs | 4 ++-- tests/src/tests.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/src') 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 -- cgit v1.2.3