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 authored and lucamolteni committed Sep 7, 2023
1 parent 4d33d25 commit ae4506e
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 ae4506e

Please sign in to comment.