Changes between Version 11 and Version 12 of oss/lolunit/tutorial


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

layout

Legend:

Unmodified
Added
Removed
Modified
  • oss/lolunit/tutorial

    v11 v12  
    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
    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 
    182180And this is the output:
    183181
     
    195193- Delta   : 1e-10
    196194}}}
     195
     196Also, there is no way to compare two values and have them printed 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`.