Re: ExtendedTextTestRunner

Gary Granger <[email protected]> Tue, 28 Jan 2003 10:12:58 -0700
Newsgroups gmane.comp.lib.cppunit.devel
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com