Skip to content

Add a bunch of tests to everything, start to work to pass them. - #1

Merged
luciansmith merged 13 commits into
developfrom
more-tests
Sep 30, 2026
Merged

luciansmith merged 13 commits into
developfrom
more-tests

Conversation

@luciansmith

Copy link
Copy Markdown
Contributor

No description provided.

luciansmith and others added 13 commits September 28, 2026 19:48
Summary from Claude:
Bounds: a reference to a constant that's zero, negative or non-integer now fails for the positive, non-negative and integer types.
Arrays: a reference must resolve to a list. With ListOfStringsOrRef or ListOfNumbersOrRef, the elements must also be strings or numbers. Elements that are themselves references are accepted.
Dicts: a reference must resolve to an object, and its values are checked when the field says they must be strings.
Model targets: #tasks:model1.model now fails in all the scalar, array and dict fields. It was silent before.
Loose cases: these are recorded in CreateTests.md. A dict field fed a data output is not flagged. A string-array field fed an annotatedData output is not flagged, because labels can be strings. A number-array field fed a stringList output is.
NumericRange.values: NumericRange re-declares Range's values, so a bad reference there correctly fires both NumericRange-0012 and Range-0002. Two fixtures are renamed to say so, for example NumericRange-0012-fail-01-scalar_constant-Range-0002-01. I used underscores in the test name because the harness's file-name pattern can't tell a hyphenated name from the start of a chain. The generator does this automatically.
Wider effects: rules_data.py was stale and lacked SEDBase-0016/-0017, so regenerating it added them. The schema-tier fixtures aren't in the folder, so I regenerated 50 of them in scratch and all pass. The generator dropped 15 others for firing extra rules, which I didn't check against the old code.
Java and C++: they still have no validation dispatch at all, so these checks are owed there before the next merge (per Claude.md). I noted that in the TODO list in CreateTests.md.
@luciansmith
luciansmith merged commit d5aa6a8 into develop Sep 30, 2026
7 checks passed
@luciansmith
luciansmith deleted the more-tests branch September 30, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant