aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-01-19 09:46:35 +0200
committerEdgars Cīrulis <edgarsscirulis@gmail.com>2023-01-19 09:50:45 +0200
commit9934537e19c7ce6f9bf926cc8abba023297b0a40 (patch)
tree40eb8fa464e52b6c2b7aa5faa3c23e643fbbd6d4 /tests
parent730f714e973eadf76d2f834a9e062ce5bb44e41f (diff)
downloadPrismLauncher-9934537e19c7ce6f9bf926cc8abba023297b0a40.tar.gz
PrismLauncher-9934537e19c7ce6f9bf926cc8abba023297b0a40.tar.bz2
PrismLauncher-9934537e19c7ce6f9bf926cc8abba023297b0a40.zip
feat: add debug printing for Version
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/Version_test.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 9f84a9a7..0f716a75 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -53,3 +53,6 @@ ecm_add_test(Packwiz_test.cpp LINK_LIBRARIES Launcher_logic Qt${QT_VERSION_MAJOR
ecm_add_test(Index_test.cpp LINK_LIBRARIES Launcher_logic Qt${QT_VERSION_MAJOR}::Test
TEST_NAME Index)
+
+ecm_add_test(Version_test.cpp LINK_LIBRARIES Launcher_logic Qt${QT_VERSION_MAJOR}::Test
+ TEST_NAME Version)
diff --git a/tests/Version_test.cpp b/tests/Version_test.cpp
index 734528b7..6836b6fa 100644
--- a/tests/Version_test.cpp
+++ b/tests/Version_test.cpp
@@ -15,7 +15,6 @@
#include <QTest>
-#include <TestUtil.h>
#include <Version.h>
class ModUtilsTest : public QObject
@@ -74,6 +73,8 @@ private slots:
const auto v1 = Version(first);
const auto v2 = Version(second);
+ qDebug() << v1 << "vs" << v2;
+
QCOMPARE(v1 < v2, lessThan);
QCOMPARE(v1 > v2, !lessThan && !equal);
QCOMPARE(v1 == v2, equal);