--- a/test/string_tests.c Wed Feb 27 14:04:45 2013 +0100 +++ b/test/string_tests.c Wed Feb 27 14:12:28 2013 +0100 @@ -177,7 +177,9 @@ UCX_TEST_IMPLEMENT(test_sstrtrim) { sstr_t test = sstrtrim(sstr(" ein test ")); + sstr_t empty = sstrtrim(sstr("")); UCX_TEST_BEGIN UCX_TEST_ASSERT(strncmp(test.ptr, "ein test", test.length) == 0, "failed"); + UCX_TEST_ASSERT(empty.length == 0, "empty string failed"); UCX_TEST_END }