summaryrefslogtreecommitdiff
path: root/src/cppunit/Asserter.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-03-27 18:04:02 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-03-27 18:04:02 +0000
commit1858c0b90eeee745b3d8f1e2c52d4614c4307ddc (patch)
tree6c1c391304c63241a74f25cd8b7ad9b91d91faae /src/cppunit/Asserter.cpp
parent8f5672c150b457d3d4709256797692bdf0c6b920 (diff)
downloadcppunit-1858c0b90eeee745b3d8f1e2c52d4614c4307ddc.tar.gz
Include/msvc/testrunner/TestRunner.
include/msvc/testrunner/TestRunner.h: updated doc. reindented. * include/cppunit/Asserter.h: * include/cppunit/Asserter.cpp: * include/cppunit/TestResultCollector.h: * include/cppunit/TestResult.h: * include/cppunit/SynchronizedObject.h: * include/cppunit/extensions/TestCaller.h: doc update.
Diffstat (limited to 'src/cppunit/Asserter.cpp')
-rw-r--r--src/cppunit/Asserter.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/cppunit/Asserter.cpp b/src/cppunit/Asserter.cpp
index b6e5015..29c5201 100644
--- a/src/cppunit/Asserter.cpp
+++ b/src/cppunit/Asserter.cpp
@@ -6,54 +6,6 @@ namespace CppUnit
{
-/*! Asserter creates and throws failure exception.
- *
- * The following example show how to create an assertion that
- * checks if two XML strings are equivalent (extract from
- * XmlUniformiser.cpp of CppUnit test suite):
- *
- * \code
- * // Asserts that two XML strings are equivalent.
- * #define CPPUNITTEST_ASSERT_XML_EQUAL( expected, actual ) \
- * ::CppUnitTest::checkXmlEqual( expected, actual, \
- * CPPUNIT_SOURCELINE() )
- * void
- * checkXmlEqual( std::string expectedXml,
- * std::string actualXml,
- * CppUnit::SourceLine sourceLine )
- * {
- * std::string expected = XmlUniformiser( expectedXml ).stripped();
- * std::string actual = XmlUniformiser( actualXml ).stripped();
- *
- * if ( expected == actual )
- * return;
- *
- * int index = notEqualIndex( expected, actual );
- * CppUnit::OStringStream message;
- * message << "differ at index: " << index << "\n"
- * << "expected: " << expected.substr(index) << "\n"
- * << "but was : " << actual.substr( index );
- * ::CppUnit::Asserter::failNotEqual( expected,
- * actual,
- * sourceLine,
- * message.str() );
- * }
- *
- *
- * int
- * notEqualIndex( std::string expectedXml,
- * std::string actualXml )
- * {
- * int index = 0;
- * while ( index < actualXml.length() &&
- * index < expectedXml.length() &&
- * actualXml[index] == expectedXml[index] )
- * ++index;
- *
- * return index;
- * }
- * \endcode
- */
namespace Asserter
{