Repository navigation
test(conformance): .wind conformance corpus (valid/invalid/manifest) - #320
Merged
Merged
Conversation
Add a top-level conformance/ corpus pinning the format's accept/reject contract, independent of the byte-level example goldens: - valid/ — hoop, helical, skip, multilayer, cone (schemaVersion 1.1) that MUST parse and plan to a non-empty program. - invalid/ — 8 cases that MUST be rejected (bad major version, missing field, out-of-range angle, non-coprime pattern, lead-in too long, expanding cone, unreachable cone angle, hoop-on-cone), each paired in manifest.json with the error substring it must fail on, so a case fails for its STATED reason. tests/conformance/ enforces it: every valid file parses+plans, every invalid file raises (WindFileError | LayerValidationError) with its match, every invalid file is listed in the manifest, and the corpus is non-empty (no vacuous skip-pass). Slice B of #141 (open-format epic). Closes #315.
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Open-format slice B (#315) of epic #141 — the conformance corpus. Completes the open-format epic.
What's here
conformance/tree pinning the format's accept/reject contract, separate from the byte-level example goldens:valid/(5) — hoop, helical, skip, multilayer, cone (schemaVersion 1.1); each MUST parse + plan to a non-empty program.invalid/(8) — bad major version, missing required field, out-of-range wind angle, non-coprime pattern, lead-in ≥ wind length, expanding cone, unreachable cone angle, hoop-on-cone; each MUST be rejected and is paired inmanifest.jsonwith the error substring it must fail on.conformance/README.mddocuments the contract.tests/conformance/enforces it: everyvalid/parses+plans, everyinvalid/raises (WindFileError|LayerValidationError) with itsmatch, every invalid file is listed in the manifest, and the corpus is asserted non-empty (no vacuous skip-pass).Verification
pytest228 passed (14 new conformance cases);ruffclean.examples/untouched.wind_angle_out_of_rangereaches the angle bound with coprime pattern;expanding_conefails on orientation not reachability;unreachable_cone_anglepasses the frustum check then fails on Clairaut reachability). Both NITs applied (non-empty guard, tighter lead-in match).Scope
Accept/reject contract only — no byte-output goldens (those live in
examples/+test_example_goldens). Self-contained.Closes #315.