summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/2 gtest/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/frameworks/2 gtest/test.cc')
-rw-r--r--test cases/frameworks/2 gtest/test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/frameworks/2 gtest/test.cc b/test cases/frameworks/2 gtest/test.cc
new file mode 100644
index 0000000..21efd68
--- /dev/null
+++ b/test cases/frameworks/2 gtest/test.cc
@@ -0,0 +1,9 @@
+#include<gtest/gtest.h>
+
+TEST(basic_test, eq_works) {
+ ASSERT_EQ(0, 1-1) << "Equality is broken. Mass panic!";
+}
+
+TEST(basic_test, neq_works) {
+ ASSERT_NE(15, 106) << "Inequal is equal. The foundations of space and time are in jeopardy.";
+}