diff --git a/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java b/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java index c4822f7f..ff1f5af5 100644 --- a/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java +++ b/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java @@ -77,11 +77,11 @@ public void testCentreRightBackProbabilisticAssertions() { testOutput.runTest(Position.D_CR); assertEquals(0.17, testOutput.getPossessionOutcomeByPosition(Position.GK), DELTA); - assertEquals(0.17 * xP * 2.0, testOutput.getPossessionOutcomeByPosition(Position.D_R), DELTA); + assertEquals(0.17 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_R), DELTA); assertEquals(0.17 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_CL), DELTA); assertEquals(0.17 * xP, testOutput.getPossessionOutcomeByPosition(Position.M_CR) / VERTICAL_DISTANCE_UNIT_FACTOR, DELTA); - assertEquals(0.17 * xP / (VERTICAL_DISTANCE_UNIT_FACTOR * HORIZONTAL_DISTANCE_UNIT_FACTOR), + assertEquals(0.17 * xP / (getUnitFactor(VERTICAL_DISTANCE_WEIGHT * 0.5) * getUnitFactor(HORIZONTAL_DISTANCE_WEIGHT * 0.5)), testOutput.getPossessionOutcomeByPosition(Position.M_R), DELTA); assertEquals(0.17 * xP / (VERTICAL_DISTANCE_UNIT_FACTOR * HORIZONTAL_DISTANCE_UNIT_FACTOR * 2), testOutput.getPossessionOutcomeByPosition(Position.F_CR), DELTA);