diff --git a/Projet_M2/test.c b/Projet_M2/test.c index 179f1b095e5ed151918ae18dae8404c2a90405fb..a230d81570f0be710b94dd0d192696889990a0c6 100644 --- a/Projet_M2/test.c +++ b/Projet_M2/test.c @@ -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"); @@ -93,7 +93,7 @@ void file_test(void){ clock_t start, end; double time; start = clock(); - + printf("check1\n"); int err = run("Test_files/input.txt","actual_output.txt",4); end = clock(); @@ -104,7 +104,7 @@ void file_test(void){ fclose(file1); return; } - + printf("check2\n"); file2 = fopen("actual_output.txt","r"); if (file2 == NULL){ CU_FAIL("actual_output opening fail");