Skip to content

Commit

Permalink
Fix off-by-one error in test caused by rounding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jul 1, 2024
1 parent 353ae01 commit f6a97ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/moves/glaive_rush.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("Moves - Glaive Rush", () => {
await game.phaseInterceptor.to(TurnEndPhase);
game.doAttack(getMovePosition(game.scene, 0, Moves.SHADOW_SNEAK));
await game.phaseInterceptor.to(DamagePhase);
expect(enemy.hp).toBeLessThanOrEqual(1000 - (damageDealt * 3));
expect(enemy.hp).toBeLessThanOrEqual(999 - (damageDealt * 3));

}, 20000);

Expand Down

0 comments on commit f6a97ca

Please sign in to comment.