INTEGRATION: CWS ause011 (1.4.52); FILE MERGED
2004/08/18 11:47:53 sb 1.4.52.1: #i33153# Made getToken more robust.
This commit is contained in:
parent
237f5ef6a7
commit
05827f1cc8
1 changed files with 10 additions and 0 deletions
|
@ -802,6 +802,15 @@ public:
|
|||
CPPUNIT_ASSERT_MESSAGE("index should be negative", nIndex == -1);
|
||||
}
|
||||
|
||||
void getToken_005() {
|
||||
rtl::OUString ab(RTL_CONSTASCII_USTRINGPARAM("ab"));
|
||||
sal_Int32 n = 0;
|
||||
CPPUNIT_ASSERT_MESSAGE(
|
||||
"token should be 'ab'", ab.getToken(0, '-', n) == ab);
|
||||
CPPUNIT_ASSERT_MESSAGE("n should be -1", n == -1);
|
||||
CPPUNIT_ASSERT_MESSAGE(
|
||||
"token should be empty", ab.getToken(0, '-', n).getLength() == 0);
|
||||
}
|
||||
|
||||
CPPUNIT_TEST_SUITE(getToken);
|
||||
CPPUNIT_TEST(getToken_000);
|
||||
|
@ -809,6 +818,7 @@ public:
|
|||
CPPUNIT_TEST(getToken_002);
|
||||
CPPUNIT_TEST(getToken_003);
|
||||
CPPUNIT_TEST(getToken_004);
|
||||
CPPUNIT_TEST(getToken_005);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
}; // class getToken
|
||||
|
||||
|
|
Loading…
Reference in a new issue