From 890f365c6878bd5c1be65b05eeb51099397d6262 Mon Sep 17 00:00:00 2001 From: lpaucot_uclouvain <laurent.paucot@student.uclouvain.be> Date: Tue, 21 Apr 2020 08:44:25 +0200 Subject: [PATCH] test --- Projet_M2/test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Projet_M2/test.c b/Projet_M2/test.c index 179f1b0..a230d81 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"); -- GitLab