Added unit-tests

This commit is contained in:
2018-12-13 11:14:12 +01:00
parent f700e85877
commit 2bce2589c3
9 changed files with 102 additions and 46 deletions

View File

@ -238,7 +238,7 @@ moFileReader::eErrorCode moFileReader::ReadFile( const char* filename )
if ( MagicReversed != moInfo.m_magicNumber )
{
m_error = "The Magic Number does not match in all cases!";
return moFileReader::EC_MAGICNUMBER_NOMATCH;
//return moFileReader::EC_MAGICNUMBER_NOMATCH;
}
else
{
@ -246,7 +246,7 @@ moFileReader::eErrorCode moFileReader::ReadFile( const char* filename )
m_error = "Magic Number is reversed. We do not support this yet!";
return moFileReader::EC_MAGICNUMBER_REVERSED;
}
}
}
// Now we search all Length & Offsets of the original strings
for ( int i = 0; i < moInfo.m_numStrings; i++ )