From 783ec0e957af43b96a893d82a796120f229a3518 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 20 Oct 2023 22:51:30 +0200 Subject: [PATCH] fixes tests --- test/battle/ability/hyper_cutter.c | 4 ++-- test/battle/move_effect/octolock.c | 3 ++- test/battle/move_effect/syrup_bomb.c | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/battle/ability/hyper_cutter.c b/test/battle/ability/hyper_cutter.c index 16b1635060..f040907626 100644 --- a/test/battle/ability/hyper_cutter.c +++ b/test/battle/ability/hyper_cutter.c @@ -130,7 +130,7 @@ SINGLE_BATTLE_TEST("Hyper Cutter doesn't prevent Spectral Thief from resetting p } } -SINGLE_BATTLE_TEST("xx Hyper Cutter doesn't prevent receiving negative Attack stage changes from Baton Pass") +SINGLE_BATTLE_TEST("Hyper Cutter doesn't prevent receiving negative Attack stage changes from Baton Pass") { GIVEN { ASSUME(gBattleMoves[MOVE_GROWL].effect == EFFECT_ATTACK_DOWN); @@ -150,4 +150,4 @@ SINGLE_BATTLE_TEST("xx Hyper Cutter doesn't prevent receiving negative Attack st } THEN { EXPECT_EQ(opponent->statStages[STAT_ATK], DEFAULT_STAT_STAGE - 1); } -} \ No newline at end of file +} diff --git a/test/battle/move_effect/octolock.c b/test/battle/move_effect/octolock.c index 2f70db39cf..4b0b1dbf4d 100644 --- a/test/battle/move_effect/octolock.c +++ b/test/battle/move_effect/octolock.c @@ -111,9 +111,10 @@ SINGLE_BATTLE_TEST("Octolock will not decrease Defense and Sp. Def further then TURN {} } SCENE { ANIMATION(ANIM_TYPE_MOVE, MOVE_OCTOLOCK, player); - for (j = 0; j < 5; j++) + for (j = 0; j < 5; j++) { MESSAGE("Foe Wobbuffet's Defense fell!"); MESSAGE("Foe Wobbuffet's Sp. Def fell!"); + } MESSAGE("Foe Wobbuffet's Defense won't go lower!"); MESSAGE("Foe Wobbuffet's Sp. Def won't go lower!"); NOT MESSAGE("Foe Wobbuffet's Defense fell!"); diff --git a/test/battle/move_effect/syrup_bomb.c b/test/battle/move_effect/syrup_bomb.c index 7c3808def8..fc55fa0163 100644 --- a/test/battle/move_effect/syrup_bomb.c +++ b/test/battle/move_effect/syrup_bomb.c @@ -98,7 +98,7 @@ SINGLE_BATTLE_TEST("Clear Body, White Smoke and Full Metal Body prevent Sticky S NOT ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent); NOT MESSAGE("Foe Torkoal's Speed fell!"); } - else if (species == SPECIES_SOLGALEO) + else { MESSAGE("Foe Solgaleo got covered in sticky syrup!"); ABILITY_POPUP(opponent, ABILITY_FULL_METAL_BODY); @@ -139,8 +139,7 @@ SINGLE_BATTLE_TEST("Sticky syrup will not decrease speed further then minus six" TURN { MOVE(player, MOVE_SYRUP_BOMB); } TURN {} } SCENE { - for (j = 0; j < 3; j++) - ANIMATION(ANIM_TYPE_MOVE, MOVE_SCARY_FACE, player); + for (j = 0; j < 3; j++) { ANIMATION(ANIM_TYPE_MOVE, MOVE_SCARY_FACE, player); } ANIMATION(ANIM_TYPE_MOVE, MOVE_SYRUP_BOMB, player); HP_BAR(opponent); MESSAGE("Foe Wobbuffet got covered in sticky syrup!");