test/string_tests.c

changeset 123
7fb0f74517c5
parent 116
234920008754
child 134
4d320dc3a7af
equal deleted inserted replaced
122:540d99722f1f 123:7fb0f74517c5
47 47
48 size_t len = sstrnlen(3, s1, s2, s3); 48 size_t len = sstrnlen(3, s1, s2, s3);
49 sstr_t cat; 49 sstr_t cat;
50 cat.ptr = (char*) malloc(16); 50 cat.ptr = (char*) malloc(16);
51 cat.length = 16; 51 cat.length = 16;
52 cat = sstrncat(3, cat, s1, s2, s3); 52 cat = sstrncat(cat, 3, s1, s2, s3);
53 53
54 UCX_TEST_BEGIN 54 UCX_TEST_BEGIN
55 55
56 UCX_TEST_ASSERT(len == 10, "sstrnlen returned wrong size"); 56 UCX_TEST_ASSERT(len == 10, "sstrnlen returned wrong size");
57 57

mercurial