We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4de9f commit 0dbb092Copy full SHA for 0dbb092
tests/CMakeLists.txt
@@ -1,8 +1,5 @@
1
set(
2
TEST_SOURCES test_main.cpp
3
- ${PROJECT_SOURCE_DIR}/arrays/array.cpp
4
- ${PROJECT_SOURCE_DIR}/problems/max_unique_split.cpp
5
- ${PROJECT_SOURCE_DIR}/problems/longest_palindrome.cpp
6
)
7
8
add_executable(
tests/arrays_tests.cpp
tests/test_main.cpp
@@ -1,6 +1,7 @@
-//#include <gtest/gtest.h>
-//
-//// Main function for running the tests
-//int main(int argc, char **argv) {
-//}
+#include <gtest/gtest.h>
+
+// Main function for running the tests
+int main(int argc, char **argv) {
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}
0 commit comments