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 bad tr1/algorithm test cases #3967

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/tr1/tests/algorithm/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ void test_find(char* first, char* last) { // test searching template functions
CHECK(STD is_permutation(first, last, p1, p1 + 7));
CHECK(!STD is_permutation(first, last, p1, p1 + CSTD strlen(p1)));
const char* p2 = "abcgfedxx";
CHECK(!STD is_permutation(first, last, p2 + 7));
CHECK(!STD is_permutation(first, last, p2 + CSTD strlen(p2)));
CHECK(!STD is_permutation(first, last, p2, p2 + 7));
CHECK(!STD is_permutation(first, last, p2, p2 + CSTD strlen(p2)));

CHECK(STD is_permutation(first, last, first, last, &cmp_chars));
const char* p3 = "aBCgfecxx";
Expand Down