test/string_tests.c

changeset 306
90b6d69bb499
parent 283
c3b6ff227481
child 364
5577d6c27a33
     1.1 --- a/test/string_tests.c	Mon May 14 15:58:51 2018 +0200
     1.2 +++ b/test/string_tests.c	Mon May 14 17:56:03 2018 +0200
     1.3 @@ -77,7 +77,12 @@
     1.4      UCX_TEST_BEGIN
     1.5      
     1.6      sstr_t notfound = sstrchr(str, 'x');
     1.7 -    UCX_TEST_ASSERT(notfound.length == 0, "string length not 0");
     1.8 +    UCX_TEST_ASSERT(notfound.length == 0,
     1.9 +            "string length not 0 after forward search w/o result");
    1.10 +    
    1.11 +    notfound = sstrrchr(str, 'x');
    1.12 +    UCX_TEST_ASSERT(notfound.length == 0,
    1.13 +            "string length not 0 after reverse search w/o result");
    1.14      
    1.15      sstr_t result = sstrchr(str, 'w');
    1.16      UCX_TEST_ASSERT(result.length == 35, "sstrchr returned wrong length");

mercurial