From 74a8ef5d0ab17dfdd3b2c08da839498dfe9caff4 Mon Sep 17 00:00:00 2001
From: Fadi Imani <fadi.imani.etu@univ-lille.fr>
Date: Tue, 2 Apr 2024 04:15:02 +0200
Subject: [PATCH] big project

---
 tests/ExampleTests.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/ExampleTests.cpp b/tests/ExampleTests.cpp
index 2c4d77d..a661d2f 100644
--- a/tests/ExampleTests.cpp
+++ b/tests/ExampleTests.cpp
@@ -58,7 +58,7 @@ TEST(ExampleTests, test_write_results) {
     write_results(&counter, "output.txt");
     cleanup_frequency_counter(&counter);
     // check the output file
-    FILE *f = fopen("./output.txt", "r");
+    FILE *f = fopen("output.txt", "r");
     char line[100];
     fgets(line, 100, f);
     EXPECT_STREQ("hello 3\n", line);
@@ -72,10 +72,10 @@ TEST(ExampleTests, test_write_results) {
 TEST(ExampleTests, test_filter_stop_words) {
     FrequencyCounter counter;
     init_frequency_counter(&counter);
-    read_and_count_words(&counter, "./test.txt");
+    read_and_count_words(&counter, "test.txt");
     sort_words_by_frequency(&counter);
-    filter_stop_words(&counter, "./stopwords.txt");
-    write_results(&counter, "./output.txt");
+    filter_stop_words(&counter, "stopWords.txt");
+    write_results(&counter, "output.txt");
     EXPECT_EQ(3, counter.count);
     EXPECT_STREQ("hello", counter.words[0].word);
     EXPECT_EQ(3, counter.words[0].frequency);
@@ -85,7 +85,7 @@ TEST(ExampleTests, test_filter_stop_words) {
 }
 
 TEST(ExampleTests, test_count_words_in_file) {
-    EXPECT_EQ(6, count_words_in_file("./test.txt"));
+    EXPECT_EQ(6, count_words_in_file("test.txt"));
 }
 
 //TEST(ExampleTests, test_read_and_count_ngrams) {
-- 
GitLab