Skip to content

Commit f0f4873

Browse files
author
Mikachu2333
committed
add tests
1 parent 8a7d657 commit f0f4873

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/xy.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ main (int argc, char const *argv[])
2727
say (xy_2pathjoin("C:\\Users\\", "\\Documents\\"));
2828
say (xy_2pathjoin("/home/user/", "/documents/"));
2929
say (xy_2pathjoin("C:\\\\Program Files\\\\", "\\\\Test\\\\"));
30-
say (xy_pathjoin(3, "C:\\a b", "c", "d"));
31-
say (xy_pathjoin(3, "D:\\", "\\a", "b\\c\\"));
30+
say (xy_pathjoin(3, "X:\\a b", "c", "d"));
31+
say (xy_pathjoin(4, "E:\\", "\\a", "b\\c\\", "/d"));
32+
say (xy_pathjoin(2, "./a", "b"));
3233
say (xy_strjoin(2, "Xi", "'an"));
3334
say (xy_strjoin (3, "屈身守分,", "以待天时,", "不可与命争也"));
3435
say (xy_strjoin (4, "水落鱼梁浅,", "天寒梦泽深。", "羊公碑字在,", "读罢泪沾襟。"));
@@ -63,7 +64,7 @@ main (int argc, char const *argv[])
6364
xy_error_brkt ("xy.h", "错误", "西安肉丸胡辣汤里没有肉丸");
6465

6566
assert (xy_streql ("abc", "abc"));
66-
assert (xy_streql_ic ("abc", "abc"));
67+
assert (xy_streql_ic ("AbC", "abc"));
6768
assert (false == xy_streql ("abc", "abC"));
6869
assert (true == xy_streql_ic ("abc", "abC"));
6970

0 commit comments

Comments
 (0)