From: Niki Roo Date: Thu, 3 Mar 2022 19:41:36 +0000 (+0100) Subject: tests change X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=b57daa4fca91fdfe540dcf204c34dfc73f6345df;p=nsub.git tests change --- diff --git a/src/tests/utils/cstring.c b/src/tests/utils/cstring.c index 1e899e6..8fd1e10 100644 --- a/src/tests/utils/cstring.c +++ b/src/tests/utils/cstring.c @@ -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);