diff options
| author | Dawsyn Schraiber <[email protected]> | 2023-09-02 09:55:10 -0400 |
|---|---|---|
| committer | Dawsyn Schraiber <[email protected]> | 2023-09-02 09:55:10 -0400 |
| commit | 1b8af4198f7f18ccbfb336709f20a88e26e2b195 (patch) | |
| tree | 90a474cfd7085355e4e1d7ae9831da7d65e9e693 /test | |
| parent | f76e1efbe420af14078eb1a98551804b830c99c1 (diff) | |
| download | active-drag-system-1b8af4198f7f18ccbfb336709f20a88e26e2b195.tar.gz active-drag-system-1b8af4198f7f18ccbfb336709f20a88e26e2b195.tar.bz2 active-drag-system-1b8af4198f7f18ccbfb336709f20a88e26e2b195.zip | |
Project Structure and Build System
Diffstat (limited to 'test')
| -rw-r--r-- | test/CMakeLists.txt | 14 | ||||
| -rw-r--r-- | test/hello_test.cc | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..9aef78e --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,14 @@ +enable_testing() + +add_executable( + hello_test + hello_test.cc +) +target_link_libraries( + hello_test + GTest::gtest_main +) + +include(GoogleTest) +gtest_discover_tests(hello_test) + diff --git a/test/hello_test.cc b/test/hello_test.cc new file mode 100644 index 0000000..5a57e13 --- /dev/null +++ b/test/hello_test.cc @@ -0,0 +1,9 @@ +#include <gtest/gtest.h> + +// Demonstrate some basic assertions. +TEST(HelloTest, BasicAssertions) { + // Expect two strings not to be equal. + EXPECT_STRNE("hello", "world"); + // Expect equality. + EXPECT_EQ(7 * 6, 42); +} |
