Changes between Version 9 and Version 10 of oss/lolunit/tutorial


Ignore:
Timestamp:
Sep 8, 2011, 10:49:44 PM (8 years ago)
Author:
sam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • oss/lolunit/tutorial

    v9 v10  
    178178One 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.
    179179
     180Also, 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
    180182And this is the output:
    181183