* Simple tests of the testing framework. How meta. */
| 730 | * Simple tests of the testing framework. How meta. |
| 731 | */ |
| 732 | CPU_TEST(TestCPUTest) |
| 733 | { |
| 734 | EXPECT_EQ(1, 1); |
| 735 | EXPECT(1 == 1); |
| 736 | EXPECT_NE(1, 2); |
| 737 | EXPECT_LT(1, 2); |
| 738 | EXPECT_GT(2, 1); |
| 739 | EXPECT_LE(2, 2); |
| 740 | EXPECT_GE(3, 2); |
| 741 | |
| 742 | // Commented out to not have the debugger break if break-on-exception is enabled. |
| 743 | // EXPECT_THROW({ throw std::runtime_error("Test"); }); |
| 744 | // EXPECT_THROW_AS({ throw std::runtime_error("Test"); }, std::runtime_error); |
| 745 | } |
| 746 | |
| 747 | CPU_TEST(TestSingleEval) |
| 748 | { |