Skip to content
Snippets Groups Projects
Commit afe0362d authored by Fadi Imani's avatar Fadi Imani
Browse files

big project

parent 55b50123
No related branches found
No related tags found
No related merge requests found
Pipeline #40543 failed
...@@ -88,22 +88,22 @@ TEST(ExampleTests, test_count_words_in_file) { ...@@ -88,22 +88,22 @@ 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) { TEST(ExampleTests, test_read_and_count_ngrams) {
// FrequencyCounter counter; FrequencyCounter counter;
// init_frequency_counter(&counter); init_frequency_counter(&counter);
// read_and_count_ngrams(&counter, "test.txt", 2); read_and_count_ngrams(&counter, "test.txt", 2);
// EXPECT_EQ(2, counter.count); EXPECT_EQ(2, counter.count);
// EXPECT_STREQ("hello world", counter.words[0].word); EXPECT_STREQ("hello world", counter.words[0].word);
// EXPECT_EQ(1, counter.words[0].frequency); EXPECT_EQ(1, counter.words[0].frequency);
// EXPECT_STREQ("world foo", counter.words[1].word); EXPECT_STREQ("world foo", counter.words[1].word);
// EXPECT_EQ(1, counter.words[1].frequency); EXPECT_EQ(1, counter.words[1].frequency);
// cleanup_frequency_counter(&counter); cleanup_frequency_counter(&counter);
//} }
//TEST(ExampleTests, test_mode_interactive) { TEST(ExampleTests, test_mode_interactive) {
// // this is just to make sure the function does not crash // this is just to make sure the function does not crash
// mode_interactive(); mode_interactive();
//} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment