mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-10 17:21:10 +00:00
Adds a Catch2 scenario that builds a 2-extruder child DynamicPrintConfig inheriting from a 1-extruder parent, calls update_non_diff_values_to_base_config through the real printer_options_with_variant_1 / _2 key sets, and asserts that printer_extruder_id, printer_extruder_variant, and retraction_length retain their full size after the merge. Covers three distinct set_with_restore<T> instantiations (Ints, Strings, Floats) and verifies both size preservation and per-extruder value preservation. Verified load-bearing: with the guard in update_non_diff_values_to_base_config temporarily removed, the test fails with "1 == 2" on pe_id.values.size() and retraction_length.values.size(); with the guard restored, all six assertions pass. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>