Repository navigation
Collation hazards: boundary inputs for compared alphanumeric fields (Part of #4035) - #5646
Merged
Merged
Conversation
… fields (Part of #4035) A dataset with generate.collation takes, for each text field the program compares as alphanumeric (relation_facts) or tests with a level-88 THRU range, values on the EBCDIC/ASCII disagreement: digit vs letter, lower vs upper case, trailing blanks, LOW-/HIGH-VALUES and the literals compared with it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 14:17
squid-protocol
enabled auto-merge (squash)
October 19, 2026 14:21
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.
Part of #4035 (layer 3 of 3: the proof; layers 1 and 2 landed as #5339 and #5414).
What
tests/tools/equivalence_inputs.py: a dataset whosegeneratehas"collation": truenow takes, for each text field the program compares as alphanumeric, values on the EBCDIC/ASCII disagreement, so aString.compareToport fails the field-by-field diff instead of passing by luck.collation_operands(case, corpus): runsrelation_factsover the program and the COPY members it (transitively) uses; returns{FIELD: literals compared with it}for alphanumeric rows, plus the endpoints of a level-88THRUrange over a field (condition_ranges). Class conditions, sign conditions and numeric rows are not picked up (relation_facts skips them).boundary_values(nbytes, literals, enc): digit vs letter, lower vs upper case, short values (trailing blanks), blank, LOW-/HIGH-VALUES (the single byte x'00' / x'FF' in the data encoding, incl. cp037), and each literal, its case swaps, trailing blank, prefix, and last-char neighbours.generate_dataset(..., collation=): boundary values by row for such fields; a case rule (values/digits/date/from), a key part, FILLER, numeric and date-shaped fields keep their old behaviour. Off unless asked, so no existing case or evidence moves.Class table
collationon in a burned-estate caseGates
pr_gates --fast6/6,--ratchets8/8,audit_checkclear, tree-wide guard tests 184 passed, new + neighbouring tests 54 passed / 3 skipped (translator),time_ratchet check0 over limit. No golden bless: nothing undergitgalaxy/changed.Cross-repo
None.
🤖 Generated with Claude Code