From d3e1f716a0ed428bd4e8122728ebbb7bf6744e34 Mon Sep 17 00:00:00 2001 From: atas Date: Thu, 27 Jul 2023 14:20:18 +0300 Subject: [PATCH] Issue #15: Modify 4-4-2 test (centre right defender) --- .../vanilla/TacticalBehaviour442GlobalPassingTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java b/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java index 2e2ff9e7..cfeb5649 100644 --- a/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java +++ b/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java @@ -72,7 +72,8 @@ public void testCentreRightBackProbabilisticAssertions() { assertEquals(0.17 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_CL), DELTA); assertEquals(0.17 * xP / VERTICAL_DISTANCE_UNIT_FACTOR, testOutput.getPossessionOutcomeByPosition(Position.M_CR), DELTA); assertEquals(0.17 * xP / VERTICAL_DISTANCE_UNIT_FACTOR, testOutput.getPossessionOutcomeByPosition(Position.M_R), DELTA); - assertEquals(0.17 * xP / (2 * VERTICAL_DISTANCE_UNIT_FACTOR), testOutput.getPossessionOutcomeByPosition(Position.F_CR), DELTA); + assertEquals(0.17 * xP / (2 * getUnitFactor(VERTICAL_DISTANCE_WEIGHT * 1.33) * getUnitFactor(HORIZONTAL_DISTANCE_WEIGHT * 1.33)), + testOutput.getPossessionOutcomeByPosition(Position.F_CR), DELTA); } @Test