diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-01 12:46:01 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-01 12:55:07 +0200 |
| commit | 7218892c722ca583297c0ebbda350bdf6f16d3ce (patch) | |
| tree | 27ebbfaf0662c1e0dd01e7c5e9e360ab288cae4d /tests | |
| parent | 9bdb0bdeffa5e4b6da9e3f6d3c1b79c506005fc5 (diff) | |
Refactor path handling
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typeset.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index 3f9bbd1d..604a8275 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -203,7 +203,7 @@ fn test( fn test_part( loader: &mut FsLoader, cache: &mut Cache, - path: &Path, + src_path: &Path, src: &str, i: usize, compare_ref: bool, @@ -224,7 +224,7 @@ fn test_part( state.page.size = Size::new(Length::pt(120.0), Length::raw(f64::INFINITY)); state.page.margins = Sides::splat(Some(Length::pt(10.0).into())); - let mut pass = typst::typeset(loader, cache, path, &src, &scope, state); + let mut pass = typst::typeset(loader, cache, Some(src_path), &src, &scope, state); if !compare_ref { pass.output.clear(); } |
