added version test for snapshot

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-10-04 19:16:21 +03:00
parent 4ee6a6711d
commit c78d4e7bb6
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -55,6 +55,8 @@ class VersionTest : public QObject {
<< "2.2.0" << true << false; << "2.2.0" << true << false;
QTest::newRow("lessThan, two-digit") << "1.41" QTest::newRow("lessThan, two-digit") << "1.41"
<< "1.42" << true << false; << "1.42" << true << false;
QTest::newRow("lessThan, snapshot") << "1.20.0-rc2"
<< "1.20.1" << true << false;
QTest::newRow("greaterThan, explicit 1") << "1.2.1" QTest::newRow("greaterThan, explicit 1") << "1.2.1"
<< "1.2.0" << false << false; << "1.2.0" << false << false;
@ -72,6 +74,8 @@ class VersionTest : public QObject {
<< "1.2" << false << false; << "1.2" << false << false;
QTest::newRow("greaterThan, two-digit") << "1.42" QTest::newRow("greaterThan, two-digit") << "1.42"
<< "1.41" << false << false; << "1.41" << false << false;
QTest::newRow("greaterThan, snapshot") << "1.20.2-rc2"
<< "1.20.1" << false << false;
} }
private slots: private slots: