diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-11-25 16:10:28 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-11-26 19:03:21 +0100 |
| commit | 85b1d1d4dd4628d1fb8901c3280cde84da450bbe (patch) | |
| tree | b69a629be9295268e071667b1587a5701f2bc7ef /tests/src | |
| parent | 2f795b5c07171affa0709195a9dae3ed5c0afbeb (diff) | |
Rework `Vt` into `Engine`
- Moves as much data out of the `Vm`
- Removes duplication with call_vm and call_vt flavours
- Uses tracked chain instead of fixed int for determining max nesting depth
- This means that nesting checks now generalizes to layout and realization, to detect crashing show rules and overly nested layouts
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/benches.rs | 2 | ||||
| -rw-r--r-- | tests/src/tests.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index 16122bd4..5ec0be61 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -57,7 +57,7 @@ fn bench_edit(iai: &mut Iai) { fn bench_eval(iai: &mut Iai) { let world = BenchWorld::new(); - let route = typst::eval::Route::default(); + let route = typst::engine::Route::default(); let mut tracer = typst::eval::Tracer::new(); iai.run(|| { typst::eval::eval(world.track(), route.track(), tracer.track_mut(), &world.source) diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 0a936a8d..d801209e 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -535,7 +535,7 @@ fn test_part( if world.print.model { let world = (world as &dyn World).track(); - let route = typst::eval::Route::default(); + let route = typst::engine::Route::default(); let mut tracer = typst::eval::Tracer::new(); let module = |
