From f27f432e771d2e39f9d41cd2945ab22b98ae80d6 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 23 Jan 2022 15:09:46 +0000 Subject: [PATCH] Add example test file --- test/hello_test.cc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/hello_test.cc diff --git a/test/hello_test.cc b/test/hello_test.cc new file mode 100644 index 0000000..977fe7d --- /dev/null +++ b/test/hello_test.cc @@ -0,0 +1,9 @@ +#include + +// 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); +}