Add test for AcidArmor.
This commit is contained in:
parent
0f49d03c6e
commit
56b540e6fc
|
@ -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
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue