You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(planning): byte-equal .wind→.gcode golden harness + regenerator #271
Prework for #136. Depends on the golden freeze (P0).
Scope
Add a parametrized, manifest-driven .wind → .gcodebyte-equal golden test: plan_wind(def) -> serialize(program, dialect) then assert text == Path(golden).read_text() (exact text compare — catches trailing-newline drift).
Mirror the existing working template (tests/planning/test_layer_strategies.py + tests/planning/_generate_fixtures.py) — do not invent a new harness.
Add a deliberate regenerator (FIBERPATH_UPDATE_GOLDENS=1) so baselines are only refreshed on purpose, never hand-edited.
Keep the 4 tests/planning/fixtures/*.gcode on their strategy-level generation path (3 of 4 are produced by plan_hoop/helical/skip_layer on a bare WinderMachine, with no header/ProgramMeta) — the harness must cover both the full-program and the layer-only paths.
Acceptance
Harness is green at freeze (pre-refactor) against all committed goldens.
Goldens are only updated through the regenerator.
Notes
At this point serialize() doesn't exist yet — until S2a lands, the test calls the current emit path. Wire it to serialize() in S2a (the empty-diff is S2a's acceptance).
Activity