Add test for AcidArmor.

This commit is contained in:
Deukhoofd 2020-02-17 18:08:39 +01:00
parent 0f49d03c6e
commit 56b540e6fc
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#include "../Macros/MoveMacros.hpp"
using Stats = PkmnLib::Library::Statistic;
TEST_CASE("AcidArmor - Increases defense by 2", "[moves]") {
SETUP_MOVE_TEST(Acid_Armor)
CHECK(userMon->GetStatBoost(Stats::PhysicalDefense) == 0);
script->OnStatusMove(executingMove, userMon, 0);
CHECK(userMon->GetStatBoost(Stats::PhysicalDefense) == 2);
CLEANUP_MOVE_TEST
}

View File

@ -64,6 +64,8 @@ int main(int argc, char* argv[]) {
int returnCode = session.applyCommandLine(argc, argv);
if (returnCode != 0) // Indicates a command line error
return returnCode;
if (session.config().showHelp())
return 0;
auto typesLibrary = BuildTypes::Build(typesFile);
auto natureLibrary = BuildNatures::Build(naturesFile);