Skip to content

Commit

Permalink
fix impact assertion in constraint verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
RobJohansen committed Sep 8, 2023
1 parent adc52e7 commit 623d913
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ private void assertImpact(ScoreImpactType scoreImpactType, Number matchWeightTot
if (actualScoreImpactType == ScoreImpactType.MIXED) {
// Impact means we need to check for expected impact type and actual impact match.
switch (scoreImpactType) {
case REWARD:
case PENALTY:
Number negatedImpact = deducedImpacts.getValue();
if (equalityPredicate.test(matchWeightTotal, negatedImpact)) {
return;
}
break;
case PENALTY:
case REWARD:
if (equalityPredicate.test(matchWeightTotal, impact)) {
return;
}
Expand Down

0 comments on commit 623d913

Please sign in to comment.