Add test for AcidSpray.

This commit is contained in:
Deukhoofd 2020-02-17 18:17:10 +01:00
parent 56b540e6fc
commit f0738f8cf3
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
4 changed files with 17 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#include <CreatureLib/Battling/Models/ExecutingAttack.hpp> #include <CreatureLib/Battling/Models/ExecutingAttack.hpp>
#include <PkmnLib/Battling/Pokemon/CreatePokemon.hpp>
#include <PkmnLib/Battling/Battle/Battle.hpp> #include <PkmnLib/Battling/Battle/Battle.hpp>
#include "../../../extern/catch.hpp" #include <PkmnLib/Battling/Pokemon/CreatePokemon.hpp>
#include "../Macros/MoveMacros.hpp" #include "../../../../extern/catch.hpp"
#include "../../Macros/MoveMacros.hpp"
TEST_CASE("Absorb - Heals on use", "[moves]") { TEST_CASE("Absorb - Heals on use", "[moves]") {
SETUP_MOVE_TEST(Absorb) SETUP_MOVE_TEST(Absorb)

View File

@ -1,4 +1,4 @@
#include "../Macros/MoveMacros.hpp" #include "../../Macros/MoveMacros.hpp"
using Stats = PkmnLib::Library::Statistic; using Stats = PkmnLib::Library::Statistic;

View File

@ -1,4 +1,4 @@
#include "../Macros/MoveMacros.hpp" #include "../../Macros/MoveMacros.hpp"
using Stats = PkmnLib::Library::Statistic; using Stats = PkmnLib::Library::Statistic;
TEST_CASE("AcidArmor - Increases defense by 2", "[moves]") { TEST_CASE("AcidArmor - Increases defense by 2", "[moves]") {

View File

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