Changes between Version 9 and Version 10 of oss/lolunit/tutorial
- Timestamp:
- Sep 8, 2011, 10:49:44 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
oss/lolunit/tutorial
v9 v10 178 178 One major problem I have with this system is that `Addition` needs to be declared and defined at two different places. Similarly, `MyFirstFixture` needs to be declared, then given as an argument to `CPPUNIT_TEST_SUITE`, and finally as an argument to `CPPUNIT_TEST_SUITE_REGISTRATION`. There is no reason the user should have to duplicate this information. 179 179 180 Also, there is no way to compare two values and have them output in case of failure. The equivalent of `LOLUNIT_ASSERT_LESS(a, b)`, which will print the values of `a` and `b` in case of failure, is the less interesting `CPPUNIT_ASSERT(a < b)`, which will only output `true` or `false`. 181 180 182 And this is the output: 181 183