From 1b9b41ba9bceda9340e7d3f8b9b716d643f360aa Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Sun, 4 Oct 2026 01:32:32 +0100 Subject: [PATCH] test(core): expect surplus EXP when no EVs need training (#4881) --- Tests/PKHeX.Core.Tests/Legality/EffortExpLegalityTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/PKHeX.Core.Tests/Legality/EffortExpLegalityTests.cs b/Tests/PKHeX.Core.Tests/Legality/EffortExpLegalityTests.cs index 7c5ea1333..b32979818 100644 --- a/Tests/PKHeX.Core.Tests/Legality/EffortExpLegalityTests.cs +++ b/Tests/PKHeX.Core.Tests/Legality/EffortExpLegalityTests.cs @@ -9,15 +9,16 @@ public class EffortExpLegalityTests private static readonly int[] Empty = new int[6]; [Fact] - public void ZeroEVs_ReturnsZero() + public void ZeroEVs_AllGainedEXPIsSurplus() { + // No EVs need training, so every gained EXP point is surplus (negative = legal). EffortExpLegality.GetRequiredEffortEXP( Empty, gainedEXP: 999, hasPokerus: false, originFormat: 4, currentFormat: 4) - .Should().Be(0); + .Should().Be(-999); } [Theory]