diff --git a/Projet_M2/test.c b/Projet_M2/test.c index a6ce9f7f6e101cdea4af8a0840f149cd6cc5434e..179f1b095e5ed151918ae18dae8404c2a90405fb 100644 --- a/Projet_M2/test.c +++ b/Projet_M2/test.c @@ -18,7 +18,7 @@ void test_is_not_prime(void){ CU_ASSERT_FALSE(is_prime(14)); } void empty_file_test(void){ - printf("check1\n"); + FILE *file1 = NULL; int err = run("Test_files/empty_input.txt","actual_output.txt",4); @@ -37,7 +37,7 @@ void empty_file_test(void){ CU_ASSERT_EQUAL(fgets(chaine1,20,file1),NULL); fclose(file1); - printf("check2\n"); + } void short_file_test(void){ @@ -49,14 +49,14 @@ void short_file_test(void){ CU_FAIL("short_expected_output opening fail"); return; } - + printf("check1\n"); int err = run("Test_files/short_input.txt","actual_output.txt",4); if (err == -1){ CU_FAIL("method run failed"); fclose(file1); return; } - + printf("check2\n"); file2 = fopen("actual_output.txt","r"); if (file2 == NULL){ CU_FAIL("actual_output opening fail");