Skip to content

Commit c7a90d7

Browse files
authored
Fix bad tr1/algorithm test cases (#3967)
1 parent 292ff9b commit c7a90d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tests/tr1/tests/algorithm/test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ void test_find(char* first, char* last) { // test searching template functions
105105
CHECK(STD is_permutation(first, last, p1, p1 + 7));
106106
CHECK(!STD is_permutation(first, last, p1, p1 + CSTD strlen(p1)));
107107
const char* p2 = "abcgfedxx";
108-
CHECK(!STD is_permutation(first, last, p2 + 7));
109-
CHECK(!STD is_permutation(first, last, p2 + CSTD strlen(p2)));
108+
CHECK(!STD is_permutation(first, last, p2, p2 + 7));
109+
CHECK(!STD is_permutation(first, last, p2, p2 + CSTD strlen(p2)));
110110

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

0 commit comments

Comments
 (0)