CPPUNIT_TEST, cppunitunittest
(1) CPPUNIT_ASSERT (condition): determines whether the value of condition is true. If it is false, an error message is generated.
(2) CPPUNIT_ASSERT_MESSAGE (message, condition): similar to CPPUNIT_ASSERT, but the messsage information is reported when the result is false.
(3) CPPUNIT_FAIL (message): directly reports the messsage error message.
(4) CPPUNIT_ASSERT_EQUAL (expected, actual): determines whether the values of expected and actual are equal, if not, the output error message.
(5) cppunit_assert_cmd_message (message, expected, actual): similar to CPPUNIT_ASSERT_EQUAL, but the message is output when the assertion fails.
(6) CPPUNIT_ASSERT_DOUBLES_EQUAL (expected, actual, delta): determines whether the deviation between expected and actual is less than delta, used for floating point comparison.
(7) CPPUNIT_ASSERT_THROW (expression, ExceptionType): determines whether to throw the ExceptionType exception after executing expression.
(8) CPPUNIT_ASSERT_NO_THROW (expression): No exception is thrown after the expression is executed by the assertion.