summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/2 gtest/test_nomain.cc
blob: bd0bcfe41279f0af29d4df5b88011e54d672d130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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.";
}

int main(int argc, char **argv) {
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}