diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-26 04:04:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-26 04:04:09 +0200 |
commit | cca670013463f0062cec950d9b9bb76f9150ed93 (patch) | |
tree | f3a80479a0184f5f25af6c0ca42714cc7ba4e9c5 /tests | |
parent | 0af04dc060cfe94f25d1d3691c8bb87cbab1ecc5 (diff) | |
download | MultiMC-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.cpp | 34 |
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); } }; |