test(core): expect surplus EXP when no EVs need training (#4881)

This commit is contained in:
Josh Creek
2026-10-04 01:32:32 +01:00
committed by GitHub
parent 86afdc9f4b
commit 1b9b41ba9b

View File

@@ -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]