summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tst_modutils.cpp34
1 files changed, 2 insertions, 32 deletions
diff --git a/tests/tst_modutils.cpp b/tests/tst_modutils.cpp
index 96d37d6e..4d9fe35f 100644
--- a/tests/tst_modutils.cpp
+++ b/tests/tst_modutils.cpp
@@ -98,11 +98,11 @@ private slots:
QCOMPARE(Util::versionIsInInterval(version, interval), result);
}
- void test_versionCompareLessThan_data()
+ void test_versionCompare_data()
{
setupVersions();
}
- void test_versionCompareLessThan()
+ void test_versionCompare()
{
QFETCH(QString, first);
QFETCH(QString, second);
@@ -113,37 +113,7 @@ private slots:
const auto v2 = Util::Version(second);
QCOMPARE(v1 < v2, lessThan);
- }
- void test_versionCompareGreaterThan_data()
- {
- setupVersions();
- }
- void test_versionCompareGreaterThan()
- {
- QFETCH(QString, first);
- QFETCH(QString, second);
- QFETCH(bool, lessThan);
- QFETCH(bool, equal);
-
- const auto v1 = Util::Version(first);
- const auto v2 = Util::Version(second);
-
QCOMPARE(v1 > v2, !lessThan && !equal);
- }
- void test_versionCompareEqual_data()
- {
- setupVersions();
- }
- void test_versionCompareEqual()
- {
- QFETCH(QString, first);
- QFETCH(QString, second);
- QFETCH(bool, lessThan);
- QFETCH(bool, equal);
-
- const auto v1 = Util::Version(first);
- const auto v2 = Util::Version(second);
-
QCOMPARE(v1 == v2, equal);
}
};