test/string_tests.c

changeset 97
499e1b465d77
parent 74
dc8bade7f2a3
child 98
0a752853f792
equal deleted inserted replaced
96:fbbff331beba 97:499e1b465d77
172 "subs, original has been modified"); 172 "subs, original has been modified");
173 free(list); 173 free(list);
174 174
175 UCX_TEST_END 175 UCX_TEST_END
176 } 176 }
177
178 UCX_TEST_IMPLEMENT(test_sstrtrim) {
179 sstr_t test = sstrtrim(sstr(" ein test "));
180 UCX_TEST_BEGIN
181 UCX_TEST_ASSERT(strncmp(test.ptr, "ein test", test.length) == 0, "failed");
182 UCX_TEST_END
183 }

mercurial