juk3n/fluffypublic Fork
⑂ 24b43d1
Commits
⬇ Clone ▾
git clone https://git.rickub.com/juk3n/fluffy.git
git clone ssh://git@rickub.com/juk3n/fluffy.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

removed sample test

juk3n committed 2024-07-02T13:53:31+02:00 Browse files
24b43d1 parent: 6714ddd
modified app/CMakeLists.txt +3 -7
@@ -37,12 +37,11 @@ add_executable(fluffy src/main.cpp)
3737
3838
3939 add_executable(
40- hello_test
41- tests/tests.cc
40+ tests
4241 tests/gameTest.cpp
4342 )
4443 target_link_libraries(
45- hello_test
44+ tests
4645 GTest::gtest_main
4746 )
4847
@@ -64,8 +63,5 @@ if (EMSCRIPTEN)
6463 endforeach(file)
6564 endif()
6665
67-
68-
69-
7066 include(GoogleTest)
71-gtest_discover_tests(hello_test)
67+gtest_discover_tests(tests)
@@ -37,12 +37,11 @@ add_executable(fluffy src/main.cpp)
37 37
38 38
39 add_executable(39 add_executable(
40- hello_test40+ tests
41- tests/tests.cc
42 tests/gameTest.cpp41 tests/gameTest.cpp
43 )42 )
44 target_link_libraries(43 target_link_libraries(
45- hello_test44+ tests
46 GTest::gtest_main45 GTest::gtest_main
47 )46 )
48 47
@@ -64,8 +63,5 @@ if (EMSCRIPTEN)
64 endforeach(file)63 endforeach(file)
65 endif() 64 endif()
66 65
67-
68-
69-
70 include(GoogleTest)66 include(GoogleTest)
71-gtest_discover_tests(hello_test)67+gtest_discover_tests(tests)
modified app/tests/gameTest.cpp +1 -3
@@ -2,12 +2,10 @@
22
33 #include <game.hpp>
44
5-// Demonstrate some basic assertions.
65 TEST(GameTest, Creation) {
76 Game sut{0, "sut", "sut/path"};
87
98 EXPECT_EQ(0, sut.getId());
109 EXPECT_EQ("sut", sut.getName());
1110 EXPECT_EQ("sut/path", sut.getPath());
12-
13-}
11+}
\ No newline at end of file
@@ -2,12 +2,10 @@
2 2
3 #include <game.hpp>3 #include <game.hpp>
4 4
5-// Demonstrate some basic assertions.
6 TEST(GameTest, Creation) {5 TEST(GameTest, Creation) {
7 Game sut{0, "sut", "sut/path"};6 Game sut{0, "sut", "sut/path"};
8 7
9 EXPECT_EQ(0, sut.getId());8 EXPECT_EQ(0, sut.getId());
10 EXPECT_EQ("sut", sut.getName());9 EXPECT_EQ("sut", sut.getName());
11 EXPECT_EQ("sut/path", sut.getPath());10 EXPECT_EQ("sut/path", sut.getPath());
12-11+}
13-}
\ No newline at end of file\ No newline at end of file
deleted app/tests/tests.cc +0 -9
deleted file mode 100644
@@ -1,9 +0,0 @@
1-#include <gtest/gtest.h>
2-
3-// Demonstrate some basic assertions.
4-TEST(HelloTest, BasicAssertions) {
5- // Expect two strings not to be equal.
6- EXPECT_STRNE("hello", "world");
7- // Expect equality.
8- EXPECT_EQ(7 * 6, 42);
9-}
deleted file mode 100644
@@ -1,9 +0,0 @@
1-#include <gtest/gtest.h>
2-
3-// Demonstrate some basic assertions.
4-TEST(HelloTest, BasicAssertions) {
5- // Expect two strings not to be equal.
6- EXPECT_STRNE("hello", "world");
7- // Expect equality.
8- EXPECT_EQ(7 * 6, 42);
9-}