Debian Codegraph @

test cases/frameworks/2 gtest/test_nomain.cc

raw
1 #include<gtest/gtest.h>
2
3 TEST(basic_test, eq_works) {
4 ASSERT_EQ(0, 1-1) << "Equality is broken. Mass panic!";
5 }
6
7 TEST(basic_test, neq_works) {
8 ASSERT_NE(15, 106) << "Inequal is equal. The foundations of space and time are in jeopardy.";
9 }
10
11 int main(int argc, char **argv) {
12 ::testing::InitGoogleTest(&argc, argv);
13 return RUN_ALL_TESTS();
14 }