From 2a7b661243a2fe3b2efd74448c7b5b00910ffcef Mon Sep 17 00:00:00 2001 From: atas Date: Sat, 29 Jul 2023 00:44:03 +0300 Subject: [PATCH] Issue #15: modify 4-4-2 vs. 4-3-3 test (right defender) --- .../vanilla/TacticalBehaviour442vs433GlobalPassingTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java b/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java index b70401a0..04af2d86 100644 --- a/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java +++ b/src/test/java/org/openengine/vanilla/TacticalBehaviour442vs433GlobalPassingTest.java @@ -50,7 +50,7 @@ public void testRightBackActionsProbabilisticAssertions() { assertEquals(0.2, testOutput.getPossessionOutcomeByPosition(Position.GK), DELTA); assertEquals(0.2 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_CR), DELTA); - assertEquals(0.2 * xP * 2.0 / HORIZONTAL_DISTANCE_UNIT_FACTOR, + assertEquals(0.2 * xP / getUnitFactor(HORIZONTAL_DISTANCE_WEIGHT * 0.5), testOutput.getPossessionOutcomeByPosition(Position.M_R), DELTA); assertEquals(0.2 * xP / (HORIZONTAL_DISTANCE_UNIT_FACTOR * VERTICAL_DISTANCE_UNIT_FACTOR), testOutput.getPossessionOutcomeByPosition(Position.M_CR), DELTA);