[Cppunit-devel] What's NEW?
Brought to you by:
blep
From: Steve M. R. <ste...@vi...> - 2001-09-23 04:50:11
|
I'm working on the final documentation changes for release 1.6.0. I'm going to have a quick sweep through the doxygen docs, then make a new (and hopefully final) snapshot before making the release Sunday night. I'd like to put together a list of the *major* user-visible changes (bug fixes and portability enhancements don't count, for example) to CppUnit since release 1.5.5. This list should also answer the question "do I have to update any bits of my source code to move from 1.5.5 to 1.6.0?" By looking at the ChangeLog, I have generated the following list. Can you help me complete it? I'm sure that I have left out some stuff from the MS side of things. And did anything change w.r.t. the registry? This list will appear in the file NEWS. Thanks, -Steve New in CppUnit 1.6.0 -------------------- * All CppUnit macros now begin with "CPPUNIT_". Macros CU_TEST_SUITE, CU_TEST, CU_TEST_SUITE_END, CU_TEST_SUB_SUITE, and CU_TEST_SUITE_REGISTRATION are renamed but are otherwise unchanged; they take the same arguments, and have the same effect. A string replace of CU_ --> CPPUNIT_ will be necessary to update your code. Macros assert, assertEqual, and assertDoublesEqual, have been replaced by CPPUNIT_ASSERT, CPPUNIT_ASSERT_EQUAL, and CPPUNIT_ASSERT_DOUBLES_EQUAL, respectively. Macro assertLongsEqual is replaced by CPPUNIT_ASSERT_EQUAL. The old assert macros can be used if your sources #define CPPUNIT_ENABLE_NAKED_ASSERT before including any CppUnit headers. * Equality assertion CPPUNIT_ASSERT_EQUAL(expected,actual) can test any type of expression. The types of "expected" and "actual" must be the same; use a cast if necessary. * Equality tested using CPPUNIT_ASSERT_EQUAL may be re-defined using a traits class. Ditto for the string representation used in the diagnostic messages. * CppUnit has a unit test for itself! -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants |