tests/test_string.c

changeset 1671
cf19b7820ff0
parent 1668
3ffdfe1776b4
--- a/tests/test_string.c	Thu Dec 25 11:48:25 2025 +0100
+++ b/tests/test_string.c	Thu Dec 25 12:07:37 2025 +0100
@@ -1025,7 +1025,7 @@
         bool ret;
         cxmutstr tok;
 
-        ret = cx_strtok_next_m(&ctx, &tok);
+        ret = cx_strtok_next(&ctx, &tok);
         CX_TEST_ASSERT(ret);
         CX_TEST_ASSERT(0 == cx_strcmp(tok, "an"));
         CX_TEST_ASSERT(ctx.pos == 0);
@@ -1034,7 +1034,7 @@
         CX_TEST_ASSERT(ctx.found == 1);
         test_toupper(tok);
 
-        ret = cx_strtok_next_m(&ctx, &tok);
+        ret = cx_strtok_next(&ctx, &tok);
         CX_TEST_ASSERT(ret);
         CX_TEST_ASSERT(0 == cx_strcmp(tok, "arbitrarily"));
         CX_TEST_ASSERT(ctx.pos == 3);
@@ -1043,7 +1043,7 @@
         CX_TEST_ASSERT(ctx.found == 2);
         test_toupper(tok);
 
-        ret = cx_strtok_next_m(&ctx, &tok);
+        ret = cx_strtok_next(&ctx, &tok);
         CX_TEST_ASSERT(ret);
         CX_TEST_ASSERT(0 == cx_strcmp(tok, ""));
         CX_TEST_ASSERT(ctx.pos == 15);
@@ -1052,7 +1052,7 @@
         CX_TEST_ASSERT(ctx.found == 3);
         test_toupper(tok);
 
-        ret = cx_strtok_next_m(&ctx, &tok);
+        ret = cx_strtok_next(&ctx, &tok);
         CX_TEST_ASSERT(ret);
         CX_TEST_ASSERT(0 == cx_strcmp(tok, "separated"));
         CX_TEST_ASSERT(ctx.pos == 17);
@@ -1061,7 +1061,7 @@
         CX_TEST_ASSERT(ctx.found == 4);
         test_toupper(tok);
 
-        ret = cx_strtok_next_m(&ctx, &tok);
+        ret = cx_strtok_next(&ctx, &tok);
         CX_TEST_ASSERT(ret);
         CX_TEST_ASSERT(0 == cx_strcmp(tok, "string"));
         CX_TEST_ASSERT(ctx.pos == 27);
@@ -1070,7 +1070,7 @@
         CX_TEST_ASSERT(ctx.found == 5);
         test_toupper(tok);
 
-        ret = cx_strtok_next_m(&ctx, &tok);
+        ret = cx_strtok_next(&ctx, &tok);
         CX_TEST_ASSERT(!ret);
         CX_TEST_ASSERT(ctx.pos == 27);
         CX_TEST_ASSERT(ctx.next_pos == 33);

mercurial