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

---
 .gitlab-ci.yml         | 4 ++--
 tests/ExampleTests.cpp | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0c4073c..57158c2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,8 +32,8 @@ test:
     - pwd
     - ls -l
     - cat tests/test.txt
-    - cp tests/test.txt build/bin
-    - cp tests/stopWords.txt build/bin
+    - cp tests/test.txt build
+    - cp tests/stopWords.txt build
     - cd build
     - ls -l
     - ls -l bin
diff --git a/tests/ExampleTests.cpp b/tests/ExampleTests.cpp
index 29f69b6..2c4d77d 100644
--- a/tests/ExampleTests.cpp
+++ b/tests/ExampleTests.cpp
@@ -26,7 +26,7 @@ TEST(ExampleTests, test_read_and_count_words) {
     if (getcwd(cwd, sizeof(cwd)) != NULL) {
         printf("Current working directory: %s\n", cwd);
     }
-    read_and_count_words(&counter, "./tests/test.txt");
+    read_and_count_words(&counter, "test.txt");
     EXPECT_EQ(3, counter.count);
     EXPECT_STREQ("hello", counter.words[0].word);
     EXPECT_EQ(3, counter.words[0].frequency);
@@ -41,7 +41,7 @@ TEST(ExampleTests, test_read_and_count_words) {
 TEST(ExampleTests, test_sort_words_by_frequency) {
     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);
     EXPECT_EQ(3, counter.count);
     EXPECT_STREQ("hello", counter.words[0].word);
@@ -53,9 +53,9 @@ TEST(ExampleTests, test_sort_words_by_frequency) {
 TEST(ExampleTests, test_write_results) {
     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);
-    write_results(&counter, "./output.txt");
+    write_results(&counter, "output.txt");
     cleanup_frequency_counter(&counter);
     // check the output file
     FILE *f = fopen("./output.txt", "r");
-- 
GitLab