blob: 6703abf9557e48dba87be525ad0154c26690eb0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* -*- eval: (outline-minor-mode); outline-regexp: "START_TEST("; -*- */
START_TEST(check_trim)
{
char s1[10] = " test ";
char s2[10] = " test\n ";
char s3[10] = "\ttest\n ";
trim(s1); trim(s2); trim(s3);
ck_assert_str_eq(s1, "test");
ck_assert_str_eq(s2, "test");
ck_assert_str_eq(s3, "test");
}
END_TEST
|