Skip to content

Commit

Permalink
Added patch to fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pkmnsnfrn committed Dec 20, 2024
1 parent 5a829ca commit b6cc3e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/battle/trainer_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ enum DifficultyLevel GetTrainerDifficultyLevelTest(u16 trainerId)

TEST("CreateNPCTrainerPartyForTrainer generates customized Pokémon")
{
enum DifficultyLevel difficulty = GetCurrentDifficultyLevel();
u32 currTrainer = 0;
struct Pokemon *testParty = Alloc(6 * sizeof(struct Pokemon));
u8 nickBuffer[20];
CreateNPCTrainerPartyFromTrainer(testParty, &sTestTrainers[difficulty][0], TRUE, BATTLE_TYPE_TRAINER);
CreateNPCTrainerPartyFromTrainer(testParty, &sTestTrainers[GetTrainerDifficultyLevelTest(currTrainer)][currTrainer], TRUE, BATTLE_TYPE_TRAINER);
EXPECT(IsMonShiny(&testParty[0]));
EXPECT(!IsMonShiny(&testParty[1]));

Expand Down

0 comments on commit b6cc3e1

Please sign in to comment.