test_nomain.cc 352 B

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