diff --git a/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java b/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java index 6ab8601a..2e2ff9e7 100644 --- a/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java +++ b/src/test/java/org/openengine/vanilla/TacticalBehaviour442GlobalPassingTest.java @@ -57,8 +57,10 @@ public void testLeftBackActionsProbabilisticAssertions() { assertEquals(0.2, testOutput.getPossessionOutcomeByPosition(Position.GK), DELTA); assertEquals(0.2 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_CL), DELTA); assertEquals(0.2 * xP / VERTICAL_DISTANCE_UNIT_FACTOR, testOutput.getPossessionOutcomeByPosition(Position.M_L), DELTA); - assertEquals(0.2 * xP / (VERTICAL_DISTANCE_UNIT_FACTOR * HORIZONTAL_DISTANCE_UNIT_FACTOR), testOutput.getPossessionOutcomeByPosition(Position.M_CL), DELTA); - assertEquals(0.2 * xP / (2 * VERTICAL_DISTANCE_UNIT_FACTOR * HORIZONTAL_DISTANCE_UNIT_FACTOR), testOutput.getPossessionOutcomeByPosition(Position.F_CL), DELTA); + assertEquals(0.2 * xP / (VERTICAL_DISTANCE_UNIT_FACTOR * HORIZONTAL_DISTANCE_UNIT_FACTOR), + testOutput.getPossessionOutcomeByPosition(Position.M_CL), DELTA); + assertEquals(0.2 * xP / (2 * getUnitFactor(VERTICAL_DISTANCE_WEIGHT * 1.33) * getUnitFactor(HORIZONTAL_DISTANCE_WEIGHT * 1.33)), + testOutput.getPossessionOutcomeByPosition(Position.F_CL), DELTA); } @Test