Skip to content

Commit fb8ea39

Browse files
author
Mikachu2333
committed
improve test
1 parent cfd9285 commit fb8ea39

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/PR-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
name: 测试PR
1414

1515
on:
16+
push:
1617
pull_request:
1718
types: [opened,
1819
synchronize, # 后续提交

test/xy.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ main (int argc, char const *argv[])
2525
println (dbl);
2626

2727
say (xy_2strjoin ("Xi", "'an"));
28-
say (xy_strjoin(3, "Xi", "'an", " Ren"));
28+
say (xy_strjoin (3, "Xi", "'an", " Ren"));
2929
say (xy_strjoin (3, "屈身守分,", "以待天时,", "不可与命争也"));
3030
say (xy_strjoin (4, "水落鱼梁浅,", "天寒梦泽深。", "羊公碑字在,", "读罢泪沾襟。"));
3131
say (xy_strjoin (6, "楚山横地出,", "汉水接天回。", "冠盖非新里,", "章华即旧台。", "习池风景异,", "归路满尘埃。"));
3232

33-
say (xy_2pathjoin("C:\\Users\\", "\\Documents\\"));
34-
say (xy_2pathjoin("/home/user a/", "/documents/"));
35-
say (xy_2pathjoin("C:\\\\Program Files\\\\", "\\\\Test\\\\"));
36-
say (xy_pathjoin(2, "./a", "b/"));
37-
say (xy_pathjoin(3, "X:\\a b", "c", "d"));
38-
say (xy_pathjoin(4, "E:\\", "\\a", "b\\c\\", "/d"));
33+
say (xy_2pathjoin ("C:\\Users\\", "\\Documents\\"));
34+
say (xy_2pathjoin ("/home/user a/", "/documents/"));
35+
say (xy_2pathjoin ("C:\\\\Program Files\\\\", "\\\\Test\\\\"));
36+
say (xy_pathjoin (2, "./a", "b/"));
37+
say (xy_pathjoin (3, "X:\\a b", "c", "d"));
38+
say (xy_pathjoin (4, "E:\\", "\\a", "b\\c\\", "/d"));
3939

4040
print (xy_str_to_bold ("粗体"));
4141
print (xy_str_to_faint ("浅体"));
@@ -123,7 +123,7 @@ main (int argc, char const *argv[])
123123
assert (xy_dir_exist ("/etc"));
124124
}
125125

126-
println (xy_normalize_path (" \n ~/haha/test/123 \n\r "));
126+
println (xy_normalize_path (" \n ~/haha/test/1 2 3 \n\r "));
127127
assert_str (xy_normalize_path ("~/haha/test"), xy_parent_dir (" ~/haha/test/123"));
128128

129129
xy_succ ("测试完成", "xy.h 测试全部通过");

0 commit comments

Comments
 (0)