Skip to content

Test coverage for search_n with forward iterators - #5439

Merged
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:mainfrom
AlexGuteniev:steal-this-iterator
May 10, 2025
Merged

Test coverage for search_n with forward iterators#5439
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:mainfrom
AlexGuteniev:steal-this-iterator

Conversation

@AlexGuteniev

Copy link
Copy Markdown
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.

Comment thread tests/std/tests/VSO_0000000_vector_algorithms_search_n/test.cpp Outdated
Comment thread tests/std/tests/VSO_0000000_vector_algorithms_search_n/test.cpp Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

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

@StephanTLavavej

Copy link
Copy Markdown
Member

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

Stephan T. Lavavej (StephanTLavavej) added a commit to StephanTLavavej/STL that referenced this pull request May 9, 2025
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 90ff1a6 into microsoft:main May 10, 2025
@github-project-automation github-project-automation Bot moved this from Merging to Done in STL Code Reviews May 10, 2025
@StephanTLavavej

Copy link
Copy Markdown
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to test code

2 participants