Add assert version checks for upcoming 1.3.0

This commit is contained in:
Srivats P 2023-10-11 12:57:25 +05:30
parent eb3331f74d
commit fff61d7773

View File

@ -32,6 +32,8 @@ Updater::Updater()
#if 1 #if 1
// Tests! // Tests!
Q_ASSERT(isVersionNewer("1.3.0", "1.2.0") == true);
Q_ASSERT(isVersionNewer("1.3.0", "1.1") == true);
Q_ASSERT(isVersionNewer("1.2.0", "1.1") == true); Q_ASSERT(isVersionNewer("1.2.0", "1.1") == true);
Q_ASSERT(isVersionNewer("1.1", "1") == true); Q_ASSERT(isVersionNewer("1.1", "1") == true);
Q_ASSERT(isVersionNewer("10.1", "2") == true); Q_ASSERT(isVersionNewer("10.1", "2") == true);