From 43a43e26445285bbae5f948a599e017717ca4ec4 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Sun, 8 Feb 2026 21:16:11 +0000 Subject: [PATCH] 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 --- tests/test_nexus_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_nexus_api.py b/tests/test_nexus_api.py index 8af184a..9453594 100644 --- a/tests/test_nexus_api.py +++ b/tests/test_nexus_api.py @@ -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."""