diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-13 23:10:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 23:10:35 +0200 |
commit | 349fc4143d4c83c50aa6340bbe7dc537a6fbf949 (patch) | |
tree | e462fdf55cf6614fa222a8308d05ef3943cc215b /launcher/modplatform | |
parent | cb258146c4f66a1e3ad8f9262030900737d20101 (diff) | |
parent | 4be9e6a0bc0a4ac6b47ead7008b8a6a811c63b4d (diff) | |
download | PrismLauncher-349fc4143d4c83c50aa6340bbe7dc537a6fbf949.tar.gz PrismLauncher-349fc4143d4c83c50aa6340bbe7dc537a6fbf949.tar.bz2 PrismLauncher-349fc4143d4c83c50aa6340bbe7dc537a6fbf949.zip |
Merge pull request #714 from Scrumplex/fix-tests
Fix mod metadata tests
Diffstat (limited to 'launcher/modplatform')
-rw-r--r-- | launcher/modplatform/packwiz/Packwiz_test.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/launcher/modplatform/packwiz/Packwiz_test.cpp b/launcher/modplatform/packwiz/Packwiz_test.cpp index 023b990e..3d47f9f7 100644 --- a/launcher/modplatform/packwiz/Packwiz_test.cpp +++ b/launcher/modplatform/packwiz/Packwiz_test.cpp @@ -1,20 +1,21 @@ // SPDX-License-Identifier: GPL-3.0-only /* -* PolyMC - Minecraft Launcher -* Copyright (c) 2022 flowln <flowlnlnln@gmail.com> -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, version 3. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <https://www.gnu.org/licenses/>. -*/ + * PolyMC - Minecraft Launcher + * Copyright (c) 2022 flowln <flowlnlnln@gmail.com> + * Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ #include <QTemporaryDir> #include <QTest> @@ -61,7 +62,7 @@ class PackwizTest : public QObject { QVERIFY(index_dir.entryList().contains(name_mod)); // Try without the .pw.toml at the end - name_mod.chop(5); + name_mod.chop(8); auto metadata = Packwiz::V1::getIndexForMod(index_dir, name_mod); |