Skip to content

Closes #5045: test_is_sorted fails when size<=10 - #5046

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5045_test_is_sorted_fails_when_size_leq_10
Nov 18, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5045_test_is_sorted_fails_when_size_leq_10

Conversation

@ajpotts

@ajpotts ajpotts commented Nov 12, 2025 •

Copy link
Copy Markdown
Contributor

In test_is_sorted, and test_is_locally_sorted, a random vector of size size // 10 and is expected to not be sorted. However, when size<=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 when size < 100.

Closes #5045: test_is_sorted fails when size<=10

@ajpotts
ajpotts force-pushed the 5045_test_is_sorted_fails_when_size_leq_10 branch from 49db8a8 to 39d141b Compare November 12, 2025 19:23
@ajpotts
ajpotts marked this pull request as ready for review November 12, 2025 20:17
@ajpotts ajpotts added the blocking This is blocking a developer from completing a task they are actively working. label Nov 12, 2025

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Nov 18, 2025
Merged via the queue into Bears-R-Us:main with commit d1341e4 Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocking This is blocking a developer from completing a task they are actively working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_is_sorted fails when size<=10

3 participants