tests/test_string.c

changeset 1680
1aa21afb8763
parent 1679
4a08dabe5e8f
--- a/tests/test_string.c	Mon Dec 29 11:21:16 2025 +0100
+++ b/tests/test_string.c	Tue Dec 30 13:50:55 2025 +0100
@@ -702,10 +702,10 @@
         CX_TEST_ASSERT(0 == cx_strcmp(list[1], ""));
         CX_TEST_ASSERT(0 == cx_strcmp(list[2], "a,csv,string"));
 
-        // call the _m variant just for coverage
+        // test with a cxmutstr
         cxmutstr mtest = cx_strdup(test);
         cxmutstr mlist[4];
-        n = cx_strsplit_m(mtest, "is,", 4, mlist);
+        n = cx_strsplit(mtest, "is,", 4, mlist);
         CX_TEST_ASSERT(n == 3);
         CX_TEST_ASSERT(0 == cx_strcmp(mlist[0], "th"));
         CX_TEST_ASSERT(0 == cx_strcmp(mlist[1], ""));
@@ -818,10 +818,10 @@
         CX_TEST_ASSERT(0 == cx_strcmp(list[2], "a,csv,string"));
         cxFree(alloc, list);
 
-        // call the _m variant just for coverage
+        // test with a cxmutstr
         cxmutstr mtest = cx_strdup(test);
         cxmutstr *mlist;
-        n = cx_strsplit_ma(alloc, mtest, "is,", 4, &mlist);
+        n = cx_strsplit_a(alloc, mtest, "is,", 4, &mlist);
         CX_TEST_ASSERT(n == 3);
         CX_TEST_ASSERT(0 == cx_strcmp(mlist[0], "th"));
         CX_TEST_ASSERT(0 == cx_strcmp(mlist[1], ""));

mercurial