From 1858c0b90eeee745b3d8f1e2c52d4614c4307ddc Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Wed, 27 Mar 2002 18:04:02 +0000 Subject: 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. --- src/cppunit/Asserter.cpp | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'src/cppunit/Asserter.cpp') 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 { -- cgit v1.2.1