Update of /cvsroot/cppunit/cppunit2/include/cpput
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17220/include/cpput
Modified Files:
assertstring.h
Log Message:
* Added check version of string assertions
Index: assertstring.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpput/assertstring.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** assertstring.h 14 Aug 2007 17:30:52 -0000 1.6
--- assertstring.h 26 Jun 2008 16:24:11 -0000 1.7
***************
*** 102,105 ****
--- 102,141 ----
+
+ // string checks
+
+ /*! \brief Asserts that a string starts with the specified character sequence.
+ * \ingroup group_assertions
+ */
+ # define CPPUT_CHECKSTR_START \
+ CPPUT_BEGIN_CHECKING_MACRO() \
+ ::CppUT::checkStringStartsWith
+
+ /*! \brief Asserts that a string ends with the specified character sequence.
+ * \ingroup group_assertions
+ */
+ # define CPPUT_CHECKSTR_END \
+ CPPUT_BEGIN_CHECKING_MACRO() \
+ ::CppUT::checkStringEndsWith
+
+ /*! \brief Asserts that a string contains the specified character sequence.
+ * \ingroup group_assertions
+ */
+ # define CPPUT_CHECKSTR_CONTAIN \
+ CPPUT_BEGIN_CHECKING_MACRO() \
+ ::CppUT::checkStringContains
+
+ /*! \brief Asserts that two string are identical.
+ * \ingroup group_assertions
+ *
+ * Useful to compare \c const \c char \c * or string of different C++ types
+ * (MFC \c CString and \c std::string for example).
+ */
+ # define CPPUT_CHECKSTR_EQUAL \
+ CPPUT_BEGIN_CHECKING_MACRO() \
+ ::CppUT::checkStringEquals
+
+
+
} // namespace CppUT
|