summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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