Skip to content

Commit

Permalink
Issue #15: modify 4-4-2 vs. 4-3-3 test (centre right defender)
Browse files Browse the repository at this point in the history
  • Loading branch information
atas76 committed Aug 1, 2023
1 parent 2cbdb6f commit 5bf4388
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5bf4388

Please sign in to comment.