-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
9.38.0.Final
-
None
-
- TriConstraintBuilder.impactLong with a soft constraint.
- Either DefaultSingleConstraintAssertion.penalizesBy or DefaultSingleConstraintAssertion.rewardsWith.
-
NEW
-
NEW
I'm using TriConstraintBuilder.impactLong with a soft constraint, but when I try to assert the match weight in tests I get errors like:
Expected reward: 460 (class java.lang.Long)
Actual impact: 460 (class java.lang.Long)Expected penalty: 540 (class java.lang.Long)
Actual impact: -540 (class java.lang.Long)
I debugged the test and came up with the code I'm hitting.
- is related to
-
PLANNER-2932 ConstraintVerifier: test for impact() is inverted
- Pull Request Sent