From b43d184b7a7fd7de6118056ba5cc66c40b9bfbc0 Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Mon, 30 Dec 2024 19:26:06 -0500 Subject: [PATCH] add another test --- src/test/phases/learn-move-phase.test.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/test/phases/learn-move-phase.test.ts b/src/test/phases/learn-move-phase.test.ts index f17eef0376a..49a8839fe24 100644 --- a/src/test/phases/learn-move-phase.test.ts +++ b/src/test/phases/learn-move-phase.test.ts @@ -103,8 +103,18 @@ describe("Learn Move Phase", () => { expect(mrMime.getMoveset()).toEqual(prevMoveset); }); - it("macro should work", async () => { - await game.classicMode.startBattle([ Species.GALAR_MR_MIME ]); // many level up moves + it("macro should add moves in free slots normally", async () => { + await game.classicMode.startBattle([ Species.GALAR_MR_MIME ]); + const mrMime = game.scene.getPlayerPokemon()!; + + game.move.changeMoveset(mrMime, [ Moves.SPLASH, Moves.ABSORB, Moves.ACID ]); + await game.move.learnMove(Moves.SACRED_FIRE, 0, 1); + expect(mrMime.getMoveset()).toEqual([ Moves.SPLASH, Moves.ABSORB, Moves.ACID, Moves.SACRED_FIRE ]); + + }); + + it("macro should replace moves", async () => { + await game.classicMode.startBattle([ Species.GALAR_MR_MIME ]); const mrMime = game.scene.getPlayerPokemon()!; game.move.changeMoveset(mrMime, [ Moves.SPLASH, Moves.ABSORB, Moves.ACID, Moves.VINE_WHIP ]); @@ -113,8 +123,8 @@ describe("Learn Move Phase", () => { }); - it("macro should work V2", async () => { - await game.classicMode.startBattle([ Species.GALAR_MR_MIME ]); // many level up moves + it("macro should cancel move learning", async () => { + await game.classicMode.startBattle([ Species.GALAR_MR_MIME ]); const mrMime = game.scene.getPlayerPokemon()!; game.move.changeMoveset(mrMime, [ Moves.SPLASH, Moves.ABSORB, Moves.ACID, Moves.VINE_WHIP ]);