Repository navigation
test: carry tokenizer oracle exclusions into declaration parity - #1542
Merged
Merged
Conversation
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.
Location
rust/obs-callback/tests/callback/decl_parity.rs:excluded.Class
Differential test input filtering error.
How it is reached
Fast Gate on #1530 failed
random_pieces_match_oracle. The generated declaration ends in a line splice inside a comment. This is an existing documented oracle exclusion inrust/obs-util/tests/config/cf_tokenizer_parity.rs, but the declaration tests that call the tokenizer did not carry it forward. See run 39467032007, job 118781234889.Proposed fix and failing test
Add focused assertions for the declaration filter, then exclude exactly terminal line splices within comment or string tokens. Keep ordinary trailing splices and unterminated comments without a splice covered. No production parser changes or C test changes.
Decisions
A separate prerequisite for the individual bug fixes split from #1462. Reuse the already documented tokenizer oracle limitation rather than changing Rust to match an undefined C result.
Validation: RED
3dc17a676fails the new filter regression; GREEN passes the declaration tests.This changes only Rust differential test filtering. Existing C tests and production code stay unchanged.