Re: [Cppunit-devel] ExtendedTextTestRunner
Brought to you by:
blep
From: Gary G. <gr...@uc...> - 2003-01-28 17:13:00
|
I appreciate your dislike of long, capitalized macros, but I do not think polluting the namespace with lots of macros which look like method calls is a good idea. I believe CppUnit did that at one point in the past until it was decided that was a bad idea. See CPPUNIT_ENABLE_NAKED_ASSERT in include/cppunit/TestAssert.h. However, perhaps that could be a feature rather than just for backwards compatibility, so those who want to 'import' lots of unqualified assertion macros can do so. If you define qualified names names for your macros, eg CPPUNIT_PHIL_..., then you could add shorter macro names protected by ifdef CPPUNIT_ENABLE_NAKED_ASSERT. Then everyone could use your macros who does not want the short names, and others can allow the short names wherever they want. gary |