Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "chained" integ tests #170

Merged
merged 4 commits into from
Aug 9, 2024
Merged

add "chained" integ tests #170

merged 4 commits into from
Aug 9, 2024

Conversation

yshavit
Copy link
Owner

@yshavit yshavit commented Aug 9, 2024

These are tests of chaining a selector into a selector of the same type, like # foo | #foo. This should always apply a second filter to the same elements; it basically ANDs them together.

I added these tests for tables initially, since there are separate Table and TableSlice variants for MdElemRef; this meant that the chaining needed to be specifically supported, and was no longer a given. But, then I figured I may as well formalize that.

Some toml test case files don't need this, so there's also a mechanism to mark the chained tests as unneeded. Otherwise, a test case file without a case named "chained" will fail (the build.rs will auto-generate a "chained" test that trivially fails).

yshavit added 3 commits August 8, 2024 21:12
These are tests where things select themselves, to make sure the second
one is superflous.
also, allow marking them as not needed; they're not always relevant to
every toml file
@yshavit yshavit linked an issue Aug 9, 2024 that may be closed by this pull request
@yshavit yshavit merged commit a7ca485 into main Aug 9, 2024
4 checks passed
@yshavit yshavit deleted the integ-test-chained branch August 9, 2024 01:56
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.

remove TODOs
1 participant