aboutsummaryrefslogtreecommitdiff
path: root/tests/TexturePackParse_test.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-24 18:08:08 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-24 20:43:17 -0700
commitcfce54fe46f7d3db39e50c4113cb9fc74d6719e2 (patch)
tree7d1b36a3a313d5da95c48dc01f44940e72828458 /tests/TexturePackParse_test.cpp
parenta7c9b2f172754aa476a23deabe074a649cefdd11 (diff)
downloadPrismLauncher-cfce54fe46f7d3db39e50c4113cb9fc74d6719e2.tar.gz
PrismLauncher-cfce54fe46f7d3db39e50c4113cb9fc74d6719e2.tar.bz2
PrismLauncher-cfce54fe46f7d3db39e50c4113cb9fc74d6719e2.zip
fix: update parse tests
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'tests/TexturePackParse_test.cpp')
-rw-r--r--tests/TexturePackParse_test.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/TexturePackParse_test.cpp b/tests/TexturePackParse_test.cpp
index 0771f79f..4ddc0a3a 100644
--- a/tests/TexturePackParse_test.cpp
+++ b/tests/TexturePackParse_test.cpp
@@ -36,9 +36,10 @@ class TexturePackParseTest : public QObject {
QString zip_rp = FS::PathCombine(source, "test_texture_pack_idk.zip");
TexturePack pack { QFileInfo(zip_rp) };
- TexturePackUtils::processZIP(pack);
+ bool valid = TexturePackUtils::processZIP(pack);
QVERIFY(pack.description() == "joe biden, wake up");
+ QVERIFY(valid == true);
}
void test_parseFolder()
@@ -48,9 +49,10 @@ class TexturePackParseTest : public QObject {
QString folder_rp = FS::PathCombine(source, "test_texturefolder");
TexturePack pack { QFileInfo(folder_rp) };
- TexturePackUtils::processFolder(pack);
+ bool valid = TexturePackUtils::processFolder(pack, TexturePackUtils::ProcessingLevel::BasicInfoOnly);
QVERIFY(pack.description() == "Some texture pack surely");
+ QVERIFY(valid == true);
}
void test_parseFolder2()
@@ -60,9 +62,10 @@ class TexturePackParseTest : public QObject {
QString folder_rp = FS::PathCombine(source, "another_test_texturefolder");
TexturePack pack { QFileInfo(folder_rp) };
- TexturePackUtils::process(pack);
+ bool valid = TexturePackUtils::process(pack, TexturePackUtils::ProcessingLevel::BasicInfoOnly);
QVERIFY(pack.description() == "quieres\nfor real");
+ QVERIFY(valid == true);
}
};