test/string_tests.c

changeset 71
303dabadff1c
parent 69
fb59270b1de3
child 74
dc8bade7f2a3
--- a/test/string_tests.c	Fri Oct 12 10:54:55 2012 +0200
+++ b/test/string_tests.c	Fri Oct 12 12:08:34 2012 +0200
@@ -158,10 +158,8 @@
     /* exact match (exm) */
     n = 0;
     list = sstrsplit(test, ST("this,is,a,csv,string"), &n);
-    UCX_TEST_ASSERT(n == 1, "exm, list length must be 1");
-    UCX_TEST_ASSERT(list[0].length == 0, "exm, single item must be empty");
-    UCX_TEST_ASSERT(strcmp(test.ptr, original) == 0,
-            "exm, original has been modified");
+    UCX_TEST_ASSERT(n == 0, "exm, list length must be 0");
+    UCX_TEST_ASSERT(list == NULL, "exm, list must be NULL");
     free(list);
 
     /* substring (subs) */

mercurial