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

Run all selector test with tuple list and html tree #523

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

ypconstante
Copy link
Contributor

To make sure we don't have any regression on the changes for #515, we need to run all selector tests with both html node tuple list and with HTMLTree.

This PR modifies most asserts on Floki.find to use assert_find, which will check the results of Floki.find with an html node tuple list, and then check if the result is the same when calling Floki.Finder.find with an HTMLTree.

On tests that have to use pattern matching instead of equals, the comparison is done directly in the test instead of using assert_find.

Depends on #522

Copy link
Owner

@philss philss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! Nice :)

@philss philss merged commit 64b79c1 into philss:main Feb 9, 2024
9 checks passed
@ypconstante ypconstante deleted the test-find-both-types branch February 17, 2024 16:43
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.

2 participants