]> git.seodisparate.com - SimpleArchiver/commitdiff
Fix failing unit tests
authorStephen Seo <seo.disparate@gmail.com>
Tue, 8 Oct 2024 06:47:57 +0000 (15:47 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 8 Oct 2024 06:47:57 +0000 (15:47 +0900)
src/test.c

index 420fc30627d31242bd0f642db0bc95210cf99e5c..5f221d12df0ad82bc07afa4ee94529d9195912d3 100644 (file)
@@ -109,7 +109,7 @@ int main(void) {
     CHECK_TRUE(strcmp("doop", parsed.working_files[1]) == 0);
     CHECK_TRUE(parsed.working_files[2] == NULL);
     CHECK_TRUE(parsed.filename == NULL);
-    CHECK_TRUE(parsed.flags == 0);
+    CHECK_TRUE(parsed.flags == 0x40);
 
     simple_archiver_free_parsed(&parsed);
 
@@ -126,7 +126,7 @@ int main(void) {
     CHECK_TRUE(strcmp("../../.prev_dir_file", parsed.working_files[2]) == 0);
     CHECK_TRUE(parsed.working_files[3] == NULL);
     CHECK_TRUE(strcmp("the_filename", parsed.filename) == 0);
-    CHECK_TRUE(parsed.flags == 1);
+    CHECK_TRUE(parsed.flags == 0x41);
 
     simple_archiver_free_parsed(&parsed);
   }