test/string_tests.c

changeset 97
499e1b465d77
parent 74
dc8bade7f2a3
child 98
0a752853f792
--- a/test/string_tests.c	Wed Feb 27 13:53:28 2013 +0100
+++ b/test/string_tests.c	Wed Feb 27 14:04:45 2013 +0100
@@ -174,3 +174,10 @@
 
     UCX_TEST_END
 }
+
+UCX_TEST_IMPLEMENT(test_sstrtrim) {
+    sstr_t test = sstrtrim(sstr("  ein test   "));
+    UCX_TEST_BEGIN
+    UCX_TEST_ASSERT(strncmp(test.ptr, "ein test", test.length) == 0, "failed");
+    UCX_TEST_END
+}

mercurial