From 6842ba6955e14c3db2e68814fa756377aba69be5 Mon Sep 17 00:00:00 2001 From: lpaucot_uclouvain <laurent.paucot@student.uclouvain.be> Date: Tue, 21 Apr 2020 08:41:17 +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 a6ce9f7..179f1b0 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"); -- GitLab