mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-20 07:30:48 +00:00
79c04fbe63
* Reference tests: parameter sweeps compare the rebuilt part with the analytic reference at the same values A case may now carry a sweep.json: each entry sets parameters on the built part, lets the history rebuild, and compares volume, area, centre of mass, bounding box and face count against an expected.json-style object worked out at those same values (issue #25 item 3). The base-case comparison is shared with the sweep entries. 24-user-parameters gets two sweep entries. Co-authored-by: openhands <openhands@all-hands.dev> * Address review: fail loudly on a bad sweep.json, reset parameters per entry - Only a genuinely absent sweep.json means no sweeps: a read or parse error, or a root that is not an array, is a failed check (CodeRabbit). - Each sweep entry rebuilds the part from the recipe in a fresh session, so one entry's parameter changes cannot leak into the next (CodeRabbit). - An entry without an expected object, or whose expected names no comparable measurement, is a failed check instead of silently passing (CodeRabbit). Co-authored-by: openhands <openhands@all-hands.dev> --------- Co-authored-by: openhands <openhands@all-hands.dev>