- added a few more unit tests for version checks

This commit is contained in:
Mark Vejvoda 2013-11-17 18:13:54 +00:00
parent d2cb21d818
commit be7639aca4
1 changed files with 16 additions and 1 deletions

View File

@ -88,7 +88,22 @@ public:
// -------- START
// 3 digit version checks
bool result = checkVersionComptability("v3.8.1", "v3.8.2");
bool result = checkVersionComptability("v3.9.0", "v3.9.1");
CPPUNIT_ASSERT_EQUAL( true,result );
result = checkVersionComptability("v3.9.0-dev", "v3.9.0");
CPPUNIT_ASSERT_EQUAL( true,result );
result = checkVersionComptability("v3.8.0-beta2", "v3.9.0");
CPPUNIT_ASSERT_EQUAL( false,result );
result = checkVersionComptability("v3.8.0-beta1", "v3.9.0");
CPPUNIT_ASSERT_EQUAL( false,result );
result = checkVersionComptability("v3.8.0-dev", "v3.9.0");
CPPUNIT_ASSERT_EQUAL( false,result );
result = checkVersionComptability("v3.8.1", "v3.8.2");
CPPUNIT_ASSERT_EQUAL( true,result );
result = checkVersionComptability("v3.8.0-beta2", "v3.8.0");