Fix FString unit test

This commit is contained in:
Markus Gans 2018-10-29 01:06:11 +01:00
parent 5d134793cf
commit c96af1d3a2
1 changed files with 1 additions and 1 deletions

View File

@ -178,12 +178,12 @@ void FStringTest::noArgumentTest()
CPPUNIT_ASSERT ( wcstr == 0 ); CPPUNIT_ASSERT ( wcstr == 0 );
std::string str = empty.toString(); std::string str = empty.toString();
CPPUNIT_ASSERT ( str.length() == 0 ); CPPUNIT_ASSERT ( str.length() == 0 );
CPPUNIT_ASSERT ( str.capacity() == 15 );
CPPUNIT_ASSERT ( str.size() == 0 ); CPPUNIT_ASSERT ( str.size() == 0 );
CPPUNIT_ASSERT ( str.empty() ); CPPUNIT_ASSERT ( str.empty() );
const finalcut::FString fstr = str; const finalcut::FString fstr = str;
CPPUNIT_ASSERT ( fstr.isNull() ); CPPUNIT_ASSERT ( fstr.isNull() );
CPPUNIT_ASSERT ( fstr.isEmpty() ); CPPUNIT_ASSERT ( fstr.isEmpty() );
CPPUNIT_ASSERT ( fstr.capacity() == 0 );
cstr = 0; cstr = 0;
CPPUNIT_ASSERT ( empty == cstr ); CPPUNIT_ASSERT ( empty == cstr );