Commit bede29b1 authored by Dominik Charousset's avatar Dominik Charousset

Fix heap overflow in unit test

parent f476b6f5
......@@ -181,7 +181,7 @@ CAF_TEST(find_last_of) {
CAF_CHECK_EQUAL(x.find_last_of("bc", 1), y.find_last_of("bc", 1));
CAF_CHECK_EQUAL(x.find_last_of("bc", 1, 0), y.find_last_of("bc", 1, 0));
CAF_CHECK_EQUAL(x.find_last_of("bc", 0, 1), y.find_last_of("bc", 0, 1));
CAF_CHECK_EQUAL(x.find_last_of("bc", 2, 10), y.find_last_of("bc", 2, 10));
CAF_CHECK_EQUAL(x.find_last_of("bc", 2, 2), y.find_last_of("bc", 2, 2));
}
CAF_TEST(find_first_not_of) {
......@@ -200,8 +200,8 @@ CAF_TEST(find_first_not_of) {
y.find_first_not_of("bc", 1, 0));
CAF_CHECK_EQUAL(x.find_first_not_of("bc", 0, 1),
y.find_first_not_of("bc", 0, 1));
CAF_CHECK_EQUAL(x.find_first_not_of("bc", 2, 10),
y.find_first_not_of("bc", 2, 10));
CAF_CHECK_EQUAL(x.find_first_not_of("bc", 2, 2),
y.find_first_not_of("bc", 2, 2));
}
CAF_TEST(find_last_not_of) {
......@@ -220,8 +220,8 @@ CAF_TEST(find_last_not_of) {
y.find_last_not_of("bc", 1, 0));
CAF_CHECK_EQUAL(x.find_last_not_of("bc", 0, 1),
y.find_last_not_of("bc", 0, 1));
CAF_CHECK_EQUAL(x.find_last_not_of("bc", 2, 10),
y.find_last_not_of("bc", 2, 10));
CAF_CHECK_EQUAL(x.find_last_not_of("bc", 2, 2),
y.find_last_not_of("bc", 2, 2));
}
CAF_TEST_FIXTURE_SCOPE_END()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment