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