INtroduce unittests.

This commit is contained in:
Kim Kulling
2018-09-22 15:50:40 +02:00
parent 0b77ebbb3e
commit 9f6238f3af
8 changed files with 170 additions and 47 deletions

View File

@@ -103,8 +103,7 @@ bool Q3BSPFileParser::readData( const std::string &rMapName )
m_Data.resize( size );
const size_t readSize = pMapFile->Read( &m_Data[0], sizeof( char ), size );
if ( readSize != size )
{
if ( readSize != size ) {
m_Data.clear();
return false;
}