summaryrefslogtreecommitdiff
path: root/src/cppunit/Asserter.cpp
diff options
context:
space:
mode:
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
{