Skip to content

Commit

Permalink
Issue #15: Modify 4-4-2 test (left defender)
Browse files Browse the repository at this point in the history
  • Loading branch information
atas76 committed Jul 27, 2023
1 parent a5afd3b commit 4808354
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4808354

Please sign in to comment.