Format xy.c

This commit is contained in:
Aoran Zeng 2024-06-08 07:17:50 +08:00
parent 1382ad751e
commit bde20be637

View File

@ -22,10 +22,8 @@ main (int argc, char const *argv[])
puts (xy_2strjoin ("Xi", "'an")); puts (xy_2strjoin ("Xi", "'an"));
puts (xy_strjoin (2, "Xi", "'an")); puts (xy_strjoin (2, "Xi", "'an"));
puts (xy_strjoin (3, "屈身守分,", "以待天时,", "不可与命争也")); puts (xy_strjoin (3, "屈身守分,", "以待天时,", "不可与命争也"));
puts (xy_strjoin (4, "水落鱼梁浅,", "天寒梦泽深。", "羊公碑字在,", puts (xy_strjoin (4, "水落鱼梁浅,", "天寒梦泽深。", "羊公碑字在,", "读罢泪沾襟。"));
"读罢泪沾襟。")); puts (xy_strjoin (6, "楚山横地出,", "汉水接天回。", "冠盖非新里,", "章华即旧台。", "习池风景异,", "归路满尘埃。"));
puts (xy_strjoin (6, "楚山横地出,", "汉水接天回。", "冠盖非新里,",
"章华即旧台。", "习池风景异,", "归路满尘埃。"));
print (xy_str_to_bold ("粗体")); print (xy_str_to_bold ("粗体"));
print (xy_str_to_faint ("浅体")); print (xy_str_to_faint ("浅体"));
@ -87,8 +85,7 @@ main (int argc, char const *argv[])
assert (true == xy_file_exist (xy_win_powershellv5_profile)); assert (true == xy_file_exist (xy_win_powershellv5_profile));
puts (xy_uniform_path (" \n ~/haha/test/123 \n\r ")); puts (xy_uniform_path (" \n ~/haha/test/123 \n\r "));
assert_str (xy_uniform_path ("~/haha/test"), assert_str (xy_uniform_path ("~/haha/test"), xy_parent_dir (" ~/haha/test/123"));
xy_parent_dir (" ~/haha/test/123"));
xy_success ("测试全部通过"); xy_success ("测试全部通过");
return 0; return 0;