summaryrefslogtreecommitdiff
path: root/include/cppunit/NotEqualException.h
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2001-06-12 05:59:26 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2001-06-12 05:59:26 +0000
commitbf78ed5d2c0f623efd08c277f97b240f2fef7ee6 (patch)
tree6faa8ef2ae7d679cb14111211e8971f2deb9a54f /include/cppunit/NotEqualException.h
parent517df147c8508ec32c7ab780cc434d7f541e2bc7 (diff)
downloadcppunit-bf78ed5d2c0f623efd08c277f97b240f2fef7ee6.tar.gz
Include/cppunit/NotEqualException.
include/cppunit/NotEqualException.h * src/cppunit/NotEqualException.h: Fixed constructor and operator = (aren't unit test nice?). Added methods expectedValue() and actualValue(). * include/cppunit/TestAssert.h: * src/cppunit/TestAssert.cpp: Use NotEqualException to report equality failure. * src/cppunit/TestResult.cpp: Report expect/was on different line for assertEquals failure. * examples/cppunittest/NotEqualExceptionTest.*: added unit tests for NotEqualException.
Diffstat (limited to 'include/cppunit/NotEqualException.h')
-rw-r--r--include/cppunit/NotEqualException.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cppunit/NotEqualException.h b/include/cppunit/NotEqualException.h
index ba39cd2..ca97364 100644
--- a/include/cppunit/NotEqualException.h
+++ b/include/cppunit/NotEqualException.h
@@ -19,6 +19,10 @@ namespace CppUnit {
virtual ~NotEqualException();
+ std::string expectedValue() const;
+
+ std::string actualValue() const;
+
/*! Copy operator.
* @param other Object to copy.
* @return Reference on this object.