summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-26 04:04:09 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-26 04:04:09 +0200
commitcca670013463f0062cec950d9b9bb76f9150ed93 (patch)
treef3a80479a0184f5f25af6c0ca42714cc7ba4e9c5 /tests
parent0af04dc060cfe94f25d1d3691c8bb87cbab1ecc5 (diff)
downloadMultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar
MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar.gz
MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar.lz
MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar.xz
MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.zip
NOISSUE fix all clang warnings
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);
}
};