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

Fix rule sorting by specificity #4

Merged
merged 2 commits into from Jun 13, 2017
Merged

Conversation

korya
Copy link
Contributor

@korya korya commented Jun 12, 2017

The bug appears only on lists with more than 6 elements due to sort.Sort implementation. For more details refer to quickSort() imlementation in https://golang.org/src/sort/sort.go#L185

The bug appears only on lists with more than 6 elements
due to sort.Sort implementation. For more details refer to
`quickSort()` imlementation in https://golang.org/src/sort/sort.go#L185
@korya
Copy link
Contributor Author

korya commented Jun 12, 2017

The tests have failure is not related to the changes introduced in this PR. The failed test case is TestNotSupportedSelectors, the reason it fails is the change in goquery API. The test case is fixed in a separate PR: #5.

@vanng822
Copy link
Owner

Thanks @korya

@vanng822 vanng822 merged commit 193ad42 into vanng822:master Jun 13, 2017
@korya korya deleted the fix-sort-rules branch June 13, 2017 12:28
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.

None yet

2 participants