summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-02-11 12:14:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-02-11 12:14:00 (GMT)
commit0efa7c32aaf21a29b42b5926cc116007056843be (patch)
tree882f663a5dd0e65694bf6077b71086dd77fd7ff8 /3rdParty/CppUnit/src/Asserter.cpp
parent1d20eabbc32274b491b4c2bedf73d19933d97bfd (diff)
downloadswift-contrib-0efa7c32aaf21a29b42b5926cc116007056843be.zip
swift-contrib-0efa7c32aaf21a29b42b5926cc116007056843be.tar.bz2
Moved some modules into separate git modules.
Diffstat (limited to '3rdParty/CppUnit/src/Asserter.cpp')
m---------3rdParty/CppUnit0
-rw-r--r--3rdParty/CppUnit/src/Asserter.cpp101
2 files changed, 0 insertions, 101 deletions
diff --git a/3rdParty/CppUnit b/3rdParty/CppUnit
new file mode 160000
+Subproject b4c34eb947c6497c6387c55c7581ec875f4e7d4
diff --git a/3rdParty/CppUnit/src/Asserter.cpp b/3rdParty/CppUnit/src/Asserter.cpp
deleted file mode 100644
index a9cf95c..0000000
--- a/3rdParty/CppUnit/src/Asserter.cpp
+++ /dev/null
@@ -1,101 +0,0 @@
-#include <cppunit/Asserter.h>
-#include <cppunit/Exception.h>
-#include <cppunit/Message.h>
-
-
-CPPUNIT_NS_BEGIN
-
-
-void
-Asserter::fail( std::string message,
- const SourceLine &sourceLine )
-{
- fail( Message( "assertion failed", message ), sourceLine );
-}
-
-
-void
-Asserter::fail( const Message &message,
- const SourceLine &sourceLine )
-{
- throw Exception( message, sourceLine );
-}
-
-
-void
-Asserter::failIf( bool shouldFail,
- const Message &message,
- const SourceLine &sourceLine )
-{
- if ( shouldFail )
- fail( message, sourceLine );
-}
-
-
-void
-Asserter::failIf( bool shouldFail,
- std::string message,
- const SourceLine &sourceLine )
-{
- failIf( shouldFail, Message( "assertion failed", message ), sourceLine );
-}
-
-
-std::string
-Asserter::makeExpected( const std::string &expectedValue )
-{
- return "Expected: " + expectedValue;
-}
-
-
-std::string
-Asserter::makeActual( const std::string &actualValue )
-{
- return "Actual : " + actualValue;
-}
-
-
-Message
-Asserter::makeNotEqualMessage( const std::string &expectedValue,
- const std::string &actualValue,
- const AdditionalMessage &additionalMessage,
- const std::string &shortDescription )
-{
- Message message( shortDescription,
- makeExpected( expectedValue ),
- makeActual( actualValue ) );
- message.addDetail( additionalMessage );
-
- return message;
-}
-
-
-void
-Asserter::failNotEqual( std::string expected,
- std::string actual,
- const SourceLine &sourceLine,
- const AdditionalMessage &additionalMessage,
- std::string shortDescription )
-{
- fail( makeNotEqualMessage( expected,
- actual,
- additionalMessage,
- shortDescription ),
- sourceLine );
-}
-
-
-void
-Asserter::failNotEqualIf( bool shouldFail,
- std::string expected,
- std::string actual,
- const SourceLine &sourceLine,
- const AdditionalMessage &additionalMessage,
- std::string shortDescription )
-{
- if ( shouldFail )
- failNotEqual( expected, actual, sourceLine, additionalMessage, shortDescription );
-}
-
-
-CPPUNIT_NS_END