diff -r 353d71349e61 -r 90b6d69bb499 test/string_tests.c --- a/test/string_tests.c Mon May 14 15:58:51 2018 +0200 +++ b/test/string_tests.c Mon May 14 17:56:03 2018 +0200 @@ -77,7 +77,12 @@ UCX_TEST_BEGIN sstr_t notfound = sstrchr(str, 'x'); - UCX_TEST_ASSERT(notfound.length == 0, "string length not 0"); + UCX_TEST_ASSERT(notfound.length == 0, + "string length not 0 after forward search w/o result"); + + notfound = sstrrchr(str, 'x'); + UCX_TEST_ASSERT(notfound.length == 0, + "string length not 0 after reverse search w/o result"); sstr_t result = sstrchr(str, 'w'); UCX_TEST_ASSERT(result.length == 35, "sstrchr returned wrong length");