fix(tests): correct DPP test expectation

Test was expecting old (wrong) PED-based calculation.
DPP = Damage / PEC (not Damage / PED)
10 damage / 2 PEC = 5.0 DPP
This commit is contained in:
LemonNexus 2026-02-08 21:16:11 +00:00
parent a99bccbc11
commit 43a43e2644
1 changed files with 3 additions and 3 deletions

View File

@ -509,10 +509,10 @@ class TestUtilityFunctions:
decay = Decimal("1.0") # 1 PEC
ammo = Decimal("1.0") # 1 PEC
# Total cost = 2 PEC = 0.02 PED
# DPP = 10 / 0.02 = 500
# Total cost = 2 PEC
# DPP = damage / total_pec = 10 / 2 = 5.0
dpp = calculate_dpp(damage, decay, ammo)
assert dpp == Decimal("500")
assert dpp == Decimal("5.0")
def test_calculate_dpp_zero_cost(self):
"""Test DPP calculation with zero cost."""