Fixed the building of BString tests

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1940 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2002-11-14 19:14:30 +00:00
parent 5f6935dc8c
commit 1d5bd6c9d9

View File

@ -22,12 +22,12 @@ StringAccessTest::PerformTest(void)
NextSubTest();
BString string("Something"B_UTF8_ELLIPSIS);
CPPUNIT_ASSERT(string.CountChars() == 10);
CPPUNIT_ASSERT(string.Length() == strlen(string.String());
CPPUNIT_ASSERT(string.Length() == strlen(string.String()));
NextSubTest();
BString string2("ABCD");
CPPUNIT_ASSERT(string2.CountChars() == 4);
CPPUNIT_ASSERT(string2.Length() == strlen(string2.String());
CPPUNIT_ASSERT(string2.Length() == strlen(string2.String()));
NextSubTest();
static char s[64];
@ -35,11 +35,11 @@ StringAccessTest::PerformTest(void)
strcat(s, B_UTF8_SMILING_FACE);
BString string3(s);
CPPUNIT_ASSERT(string3.CountChars() == 2);
CPPUNIT_ASSERT(string3.Length() == strlen(string3.String());
CPPUNIT_ASSERT(string3.Length() == strlen(string3.String()));
NextSubTest();
BString empty;
CPPUNIT_ASSERT(empty.String() == NULL);
CPPUNIT_ASSERT(strcmp(empty.String(), "") == 0);
CPPUNIT_ASSERT(empty.Length() == 0);
CPPUNIT_ASSERT(empty.CountChars() == 0);