CppUnit project page CppUnit home page

assertstring.h File Reference

#include <cpput/assertcommon.h>

Include dependency graph for assertstring.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CppUT

Defines

#define CPPUT_ASSERTSTR_START
 Asserts that a string starts with the specified character sequence.
#define CPPUT_ASSERTSTR_END
 Asserts that a string ends with the specified character sequence.
#define CPPUT_ASSERTSTR_CONTAIN
 Asserts that a string contains the specified character sequence.
#define CPPUT_ASSERTSTR_EQUAL
 Asserts that two string are identical.

Useful to compare const char * or string of different C++ types (MFC CString and std::string for example).

#define CPPUT_CHECKSTR_START
 Asserts that a string starts with the specified character sequence.
#define CPPUT_CHECKSTR_END
 Asserts that a string ends with the specified character sequence.
#define CPPUT_CHECKSTR_CONTAIN
 Asserts that a string contains the specified character sequence.
#define CPPUT_CHECKSTR_EQUAL
 Asserts that two string are identical.

Useful to compare const char * or string of different C++ types (MFC CString and std::string for example).


Functions

CheckerResult CppUT::checkStdStringStartsWith (const std::string &string, const std::string &pattern, const Message &message)
CheckerResult CppUT::checkStdStringEndsWith (const std::string &string, const std::string &pattern, const Message &message)
CheckerResult CppUT::checkStdStringContains (const std::string &string, const std::string &pattern, const Message &message)
CheckerResult CppUT::checkStdStringEquals (const std::string &expected, const std::string &actual, const Message &message)
template<typename String1, typename String2>
CheckerResult CppUT::checkStringStartsWith (const String1 &string, const String2 &pattern, const Message &message=Message())
template<typename String1, typename String2>
CheckerResult CppUT::checkStringEndsWith (const String1 &string, const String2 &pattern, const Message &message=Message())
template<typename String1, typename String2>
CheckerResult CppUT::checkStringContains (const String1 &string, const String2 &pattern, const Message &message=Message())
template<typename String1, typename String2>
CheckerResult CppUT::checkStringEquals (const String1 &expected, const String2 &actual, const Message &message=Message())


SourceForge Logo hosts this site. Send comments to:
CppUnit Developers