Skip to content

Commit

Permalink
Fix xy.c to pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed May 24, 2024
1 parent e606185 commit 8b2cc35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test: $(Target)
./$(Target) get python

test_xy:
@$(CC) test/xy.c -o xy
@$(CC) test/xy.c $(CFLAGS) -o xy
@./xy

clean:
Expand Down
8 changes: 4 additions & 4 deletions test/xy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* License : MIT
* Authors : Aoran Zeng <[email protected]>
* Created on : <2023-08-30>
* Last modified : <2024-05-24>
* Last modified : <2024-05-25>
*
* test_xy:
*
* 测试 xy.h
* ------------------------------------------------------------*/

#include "../xy.h"
#include "xy.h"

int
main (int argc, char const *argv[])
Expand Down Expand Up @@ -78,9 +78,9 @@ main (int argc, char const *argv[])
xy_warn ("警告:输出警告内容");
xy_error ("错误:输出错误内容");

assert (xy_file_exist ("chsrc.png"));
assert (xy_file_exist ("./image/chsrc.png"));
assert (xy_file_exist (xy_win_powershell_profile));
assert (false == 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 "));
assert_str (xy_uniform_path ("~/haha/test"),
Expand Down

0 comments on commit 8b2cc35

Please sign in to comment.