Add example test file

This commit is contained in:
Administrator 2022-01-23 15:09:46 +00:00
parent 909f09a474
commit f27f432e77

9
test/hello_test.cc Normal file
View File

@ -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);
}