diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-16 14:18:26 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-16 14:18:26 +0300 |
commit | 0a956bbc732f2258866f3e07e947551dfd993be6 (patch) | |
tree | 06760fa10412fb89380c9bc7e453e4dbe0a56e42 /tests/Version_test.cpp | |
parent | 1e9a596908ba85dea974e6d041b53c675f8d7b78 (diff) | |
parent | b9568279dc364a462e9837ea13bc3c4f61abdda8 (diff) | |
download | PrismLauncher-0a956bbc732f2258866f3e07e947551dfd993be6.tar.gz PrismLauncher-0a956bbc732f2258866f3e07e947551dfd993be6.tar.bz2 PrismLauncher-0a956bbc732f2258866f3e07e947551dfd993be6.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into catpacks
Diffstat (limited to 'tests/Version_test.cpp')
-rw-r--r-- | tests/Version_test.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/Version_test.cpp b/tests/Version_test.cpp index afb4c610..f5488cbc 100644 --- a/tests/Version_test.cpp +++ b/tests/Version_test.cpp @@ -20,6 +20,8 @@ class VersionTest : public QObject { Q_OBJECT + QStringList m_flex_test_names = {}; + void addDataColumns() { QTest::addColumn<QString>("first"); @@ -101,8 +103,9 @@ class VersionTest : public QObject { QString first{split_line.first().simplified()}; QString second{split_line.last().simplified()}; - auto new_test_name = test_name_template.arg(QString::number(test_number), "lessThan").toLatin1().data(); - QTest::newRow(new_test_name) << first << second << true << false; + auto new_test_name = test_name_template.arg(QString::number(test_number), "lessThan"); + m_flex_test_names.append(new_test_name); + QTest::newRow(m_flex_test_names.last().toLatin1().data()) << first << second << true << false; continue; } @@ -112,8 +115,9 @@ class VersionTest : public QObject { QString first{split_line.first().simplified()}; QString second{split_line.last().simplified()}; - auto new_test_name = test_name_template.arg(QString::number(test_number), "equals").toLatin1().data(); - QTest::newRow(new_test_name) << first << second << false << true; + auto new_test_name = test_name_template.arg(QString::number(test_number), "equals"); + m_flex_test_names.append(new_test_name); + QTest::newRow(m_flex_test_names.last().toLatin1().data()) << first << second << false << true; continue; } @@ -123,8 +127,9 @@ class VersionTest : public QObject { QString first{split_line.first().simplified()}; QString second{split_line.last().simplified()}; - auto new_test_name = test_name_template.arg(QString::number(test_number), "greaterThan").toLatin1().data(); - QTest::newRow(new_test_name) << first << second << false << false; + auto new_test_name = test_name_template.arg(QString::number(test_number), "greaterThan"); + m_flex_test_names.append(new_test_name); + QTest::newRow(m_flex_test_names.last().toLatin1().data()) << first << second << false << false; continue; } |