summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-29 13:37:25 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-29 14:18:13 +0100
commit0efe669278a5e1c3f2985eba2f3360e91159c54a (patch)
tree502712857c48f0decb5e698257c0a96d358a436e /tests/src
parent836692e73cff0356e409a9ba5b4887b86809d4ca (diff)
Reorganize library and tests
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/benches.rs4
-rw-r--r--tests/src/tests.rs2
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