Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Jun 14, 2024
1 parent 4920b89 commit a0b6be9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
c_compiler: cl

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
submodules: true

Expand Down
13 changes: 6 additions & 7 deletions test/blackbox/suites/easy/easy_unset.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ TEST easy_unset_one(void) {
get_settings_singleton()->is_backtrack = false;
get_settings_singleton()->is_forward_check = false;

FILE * fp = fopen(get_settings_singleton()->filepath, "r");
FILE * fp = fopen(get_settings_singleton()->filepath, "rb");
ASSERTm("COULDN'T OPEN FILE", fp);

Kakuro board = init_kakuro(fp);

fflush(stdout);
fclose(fp);

SArray solution = depth_first_search(board);
Expand All @@ -43,7 +42,7 @@ TEST easy_unset_two(void) {
get_settings_singleton()->is_backtrack = false;
get_settings_singleton()->is_forward_check = false;

FILE * fp = fopen(get_settings_singleton()->filepath, "r");
FILE * fp = fopen(get_settings_singleton()->filepath, "rb");
ASSERTm("COULDN'T OPEN FILE", fp);

Kakuro board = init_kakuro(fp);
Expand Down Expand Up @@ -72,7 +71,7 @@ TEST easy_unset_three(void) {
get_settings_singleton()->is_backtrack = false;
get_settings_singleton()->is_forward_check = false;

FILE * fp = fopen(get_settings_singleton()->filepath, "r");
FILE * fp = fopen(get_settings_singleton()->filepath, "rb");
ASSERTm("COULDN'T OPEN FILE", fp);

Kakuro board = init_kakuro(fp);
Expand Down Expand Up @@ -101,7 +100,7 @@ TEST easy_unset_four(void) {
get_settings_singleton()->is_backtrack = false;
get_settings_singleton()->is_forward_check = false;

FILE * fp = fopen(get_settings_singleton()->filepath, "r");
FILE * fp = fopen(get_settings_singleton()->filepath, "rb");
ASSERTm("COULDN'T OPEN FILE", fp);

Kakuro board = init_kakuro(fp);
Expand Down Expand Up @@ -130,7 +129,7 @@ TEST easy_unset_five(void) {
get_settings_singleton()->is_backtrack = false;
get_settings_singleton()->is_forward_check = false;

FILE * fp = fopen(get_settings_singleton()->filepath, "r");
FILE * fp = fopen(get_settings_singleton()->filepath, "rb");
ASSERTm("COULDN'T OPEN FILE", fp);

Kakuro board = init_kakuro(fp);
Expand Down

0 comments on commit a0b6be9

Please sign in to comment.