tests change
authorNiki Roo <niki@nikiroo.be>
Thu, 3 Mar 2022 19:41:36 +0000 (20:41 +0100)
committerNiki Roo <niki@nikiroo.be>
Thu, 3 Mar 2022 19:41:36 +0000 (20:41 +0100)
src/tests/utils/cstring.c

index 1e899e62d1b75456c0f77a488903b1f392d075dc..8fd1e1052a58ff9d742abf4791f6badf4c5b598c 100644 (file)
@@ -394,7 +394,7 @@ START(rfind)
                ASSERT_EQUALS_INT("(g) find error", -1, cstring_rfind(str, "Oops", 0));
                ASSERT_EQUALS_INT("(h) find error", 42, cstring_rfind(str, "e", 0));
                ASSERT_EQUALS_INT("(i) find error", 42, cstring_rfind(str, "e", -1));
-               //ASSERT_EQUALS_INT("(j) find error", 35, cstring_rfind(str, "e", -2));
+               ASSERT_EQUALS_INT("(j) find error", 35, cstring_rfind(str, "e", -2));
                ASSERT_EQUALS_INT("(k) find error", 35, cstring_rfind(str, "e", -3));
                ASSERT_EQUALS_INT("(l) find error", 35, cstring_rfind(str, "e", 38));
 
@@ -463,9 +463,8 @@ Suite *test_cstring(const char title[]) {
        tcase_add_test(core, reverse);
        tcase_add_test(core, replace);
        tcase_add_test(core, replace_car);
-       tcase_add_test(core, ends_with);
        tcase_add_test(core, starts_with);
-
+       tcase_add_test(core, ends_with);
        tcase_add_test(core, find);
        tcase_add_test(core, rfind);