Skip to content

Commit

Permalink
Issue #15: modify 4-3-3 test (goalkeeper)
Browse files Browse the repository at this point in the history
  • Loading branch information
atas76 committed Jul 28, 2023
1 parent dbde773 commit 861144c
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import org.openengine.vanilla.util.Flags;

import static org.junit.Assert.assertEquals;
import static org.openengine.vanilla.State.HORIZONTAL_DISTANCE_UNIT_FACTOR;
import static org.openengine.vanilla.State.VERTICAL_DISTANCE_UNIT_FACTOR;
import static org.openengine.vanilla.State.*;

public class TacticalBehaviour433GlobalPassingTest {

Expand All @@ -28,17 +27,17 @@ public void testGoalkeeperActionsProbabilisticAssertions() {
assertEquals(0.1 * xP * 2.0, testOutput.getPossessionOutcomeByPosition(Position.D_L), DELTA);
assertEquals(0.1 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_CR), DELTA);
assertEquals(0.1 * xP, testOutput.getPossessionOutcomeByPosition(Position.D_CL), DELTA);
assertEquals(0.1 * xP / VERTICAL_DISTANCE_UNIT_FACTOR,
assertEquals(0.1 * xP / getUnitFactor(VERTICAL_DISTANCE_WEIGHT * 0.5),
testOutput.getPossessionOutcomeByPosition(Position.M_RC), DELTA);
assertEquals(0.1 * xP / VERTICAL_DISTANCE_UNIT_FACTOR,
testOutput.getPossessionOutcomeByPosition(Position.M_C), DELTA);
assertEquals(0.1 * xP / VERTICAL_DISTANCE_UNIT_FACTOR,
testOutput.getPossessionOutcomeByPosition(Position.M_LC), DELTA);
assertEquals(0.1 * xP / (2 * VERTICAL_DISTANCE_UNIT_FACTOR),
testOutput.getPossessionOutcomeByPosition(Position.F_RC), DELTA);
assertEquals(0.1 * xP / (2 * VERTICAL_DISTANCE_UNIT_FACTOR),
assertEquals(0.1 * xP / (2 * getUnitFactor(VERTICAL_DISTANCE_WEIGHT * 0.5)),
testOutput.getPossessionOutcomeByPosition(Position.F_C), DELTA);
assertEquals(0.1 * xP / (2 * VERTICAL_DISTANCE_UNIT_FACTOR),
assertEquals(0.1 * xP / (2 * getUnitFactor(VERTICAL_DISTANCE_WEIGHT * 0.5)),
testOutput.getPossessionOutcomeByPosition(Position.F_LC), DELTA);
}

Expand Down

0 comments on commit 861144c

Please sign in to comment.