summaryrefslogtreecommitdiff
path: root/include/cppunit/TestAssert.h
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-08-27 20:51:18 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-08-27 20:51:18 +0000
commitc86c65b7d821fe4bb046c489528108843513e63d (patch)
tree0df76dcf21360b74ec3a401f8b077da5d839f2e9 /include/cppunit/TestAssert.h
parent69a36d9356412dddb51d8f31fbbac45ac52f7f30 (diff)
downloadcppunit-c86c65b7d821fe4bb046c489528108843513e63d.tar.gz
CodingGuideLines.
CodingGuideLines.txt: updated for OS/390 C++ limitation. * examples/cppunittests/MockFunctor.h: added. Mock Functor to help testing. * examples/cppunittests/MockProtector.h: qdded. Mock Protector to help testing. * examples/cppunittests/TestResultTest.h * examples/cppunittests/TestResultTest.cpp: added tests for pushProtector(), popProtector() and protect(). * include/cppunit/TestAssert.h: removed default message value from assertEquals(). Caused compilation error on OS/390. * include/cppunit/plugin/PlugInParameters.h: * src/cppunit/PlugInParameters.cpp: renamed commandLine() to getCommandLine(). * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testrunner/TestRunnerDlg.cpp: bug fix, disabled Browse button while running tests.
Diffstat (limited to 'include/cppunit/TestAssert.h')
-rw-r--r--include/cppunit/TestAssert.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/cppunit/TestAssert.h b/include/cppunit/TestAssert.h
index 87510df..4583cfd 100644
--- a/include/cppunit/TestAssert.h
+++ b/include/cppunit/TestAssert.h
@@ -57,7 +57,7 @@ template <class T>
void assertEquals( const T& expected,
const T& actual,
SourceLine sourceLine,
- const std::string &message ="" )
+ const std::string &message )
{
if ( !assertion_traits<T>::equal(expected,actual) ) // lazy toString conversion...
{
@@ -143,10 +143,11 @@ void CPPUNIT_API assertDoubleEquals( double expected,
* The last two requirements (serialization and comparison) can be
* removed by specializing the CppUnit::assertion_traits.
*/
-#define CPPUNIT_ASSERT_EQUAL(expected,actual) \
+#define CPPUNIT_ASSERT_EQUAL(expected,actual) \
( CPPUNIT_NS::assertEquals( (expected), \
(actual), \
- CPPUNIT_SOURCELINE() ) )
+ CPPUNIT_SOURCELINE(), \
+ "" ) )
/** Asserts that two values are equals, provides additional messafe on failure.
* \ingroup Assertions