mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-11 01:41:03 +00:00
Adds three scenarios alongside the existing child>parent stride=1 regression test for update_non_diff_values_to_base_config: - stride=2 child>parent: machine_max_acceleration_x (size 4 vs 2) — confirms the truncation guard fires for the (normal,silent)-pair stride=2 path, not just stride=1. Catches a regression class the existing test would miss because stride=2 routes through normalize_stride2_floats and a different set_with_restore call site. - equal-size (2=2): exercises the path the guard does NOT short-circuit; asserts child per-extruder values survive set_with_restore's nil-restore merge. Catches any future change that breaks the equal-size merge — the fix's `cur > target ? skip` predicate could regress to `cur >= target` and silently override child values otherwise. - non-variant scalar: layer_height in `keys` and `different_keys` but absent from printer_options_with_variant_1/_2. Hits the is_scalar() / "nothing to do" branch and must remain untouched. Scopes the guard's blast radius. All four scenarios in the [Variant] tag pass: 15 assertions, 4 test cases. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>