Repository navigation
Closes #5045: test_is_sorted fails when size<=10 - #5046
Merged
ajpotts merged 1 commit intoNov 18, 2025
Merged
Conversation
ajpotts
force-pushed
the
5045_test_is_sorted_fails_when_size_leq_10
branch
from
November 12, 2025 19:23
49db8a8 to
39d141b
Compare
ajpotts
marked this pull request as ready for review
November 12, 2025 20:17
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.
In
test_is_sorted, andtest_is_locally_sorted, a random vector of sizesize // 10and is expected to not be sorted. However, whensize<=10, the vector is degenerate and will automatically be sorted, hence the test automatically fails. This PR implements a simple fix of skipping that logic whensize < 100.Closes #5045: test_is_sorted fails when size<=10