Skip to content

Test coverage for search_n with forward iterators #5439

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

Merged
merged 5 commits into from
May 10, 2025

Conversation

AlexGuteniev
Copy link
Contributor

Resolves #933

The iterator was copied and adapted from 'P0202R3_constexpr_algorithm_and_exchange'.

Not doing fancy stuff from example test in #933: no pretty print failure and no command-line seed. These should be done consistently for all vector algorithms, if we want that. They would be convenient to have, but not strictly necessary.

@AlexGuteniev AlexGuteniev requested a review from a team as a code owner April 25, 2025 19:46
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Apr 25, 2025
@StephanTLavavej StephanTLavavej added the test Related to test code label Apr 25, 2025
@StephanTLavavej StephanTLavavej self-assigned this Apr 25, 2025
@StephanTLavavej
Copy link
Member

Thanks! 😸 I pushed trivial changes and a conflict-free merge.

@StephanTLavavej StephanTLavavej removed their assignment May 3, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews May 3, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews May 9, 2025
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

StephanTLavavej added a commit to StephanTLavavej/STL that referenced this pull request May 9, 2025
@StephanTLavavej StephanTLavavej merged commit 90ff1a6 into microsoft:main May 10, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews May 10, 2025
@StephanTLavavej
Copy link
Member

Thanks for exercising more codepaths! 🏋️‍♂️ 😻 🚀

@AlexGuteniev AlexGuteniev deleted the steal-this-iterator branch May 10, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

<algorithm>: randomized test coverage for std::search_n and ranges::search_n
2 participants