11#include "mem/forward.h"
42 CPPUNIT_ASSERT(!left.
cmp(right));
43 CPPUNIT_ASSERT(!left.
cmp(
nullptr));
44 CPPUNIT_ASSERT(!left.
cmp(
nullptr, 1));
53 CPPUNIT_ASSERT(!left.
cmp(right));
54 CPPUNIT_ASSERT(!left.
cmp(
nullptr));
55 CPPUNIT_ASSERT(!left.
cmp(
nullptr, 1));
57 CPPUNIT_ASSERT(!right.
cmp(left));
58 CPPUNIT_ASSERT(!right.
cmp(
""));
59 CPPUNIT_ASSERT(!right.
cmp(
"", 1));
68 CPPUNIT_ASSERT(left.
cmp(right) > 0);
69 CPPUNIT_ASSERT(left.
cmp(
nullptr) > 0);
70 CPPUNIT_ASSERT(left.
cmp(
nullptr, 1) > 0);
72 CPPUNIT_ASSERT(right.
cmp(left) < 0);
73 CPPUNIT_ASSERT(right.
cmp(
"foo") < 0);
74 CPPUNIT_ASSERT(right.
cmp(
"foo", 1) < 0);
82 CPPUNIT_ASSERT(check == ref);
94main(
int argc,
char *argv[])
customizes our test setup
int cmp(char const *) const
String substr(size_type from, size_type to) const
implements test program's main() function while enabling customization
int run(int argc, char *argv[])
void testCmpEmptyString()
CPPUNIT_TEST(testCmpEmptyString)
CPPUNIT_TEST_SUITE(TestString)
void testCmpNotEmptyDefault()
CPPUNIT_TEST(testCmpNotEmptyDefault)
CPPUNIT_TEST(testCmpDefault)
int main(int argc, char *argv[])
CPPUNIT_TEST_SUITE_REGISTRATION(TestString)