Skip to content

Commit

Permalink
Fix bad tr1/algorithm test cases (#3967)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyCarter authored Aug 18, 2023
1 parent 292ff9b commit c7a90d7
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit c7a90d7

Please sign in to comment.