Unit tests update

This commit is contained in:
Markus Gans 2018-03-01 00:00:30 +01:00
parent 74629b9ffb
commit f42175c8da
2 changed files with 4 additions and 4 deletions

View File

@ -1700,6 +1700,9 @@ bool FString::operator >= (const char c) const
//----------------------------------------------------------------------
bool FString::operator > (const FString& s) const
{
if ( ! (string || s.string) )
return false;
if ( ! s )
return true;
@ -1709,9 +1712,6 @@ bool FString::operator > (const FString& s) const
if ( ! string && s.string )
return false;
if ( ! (string || s.string) )
return false;
return ( std::wcscmp(string, s.string) > 0 );
}

View File

@ -141,7 +141,7 @@ void FStringTest::NoArgumentTest()
CPPUNIT_ASSERT ( ! empty.includes(std::wstring(L"123")) );
CPPUNIT_ASSERT ( ! empty.includes(FString("123")) );
std::stringstream out;
std::ostringstream out;
out << empty;
CPPUNIT_ASSERT ( out.str() == "" );