Skip to content

Commit d5bc382

Browse files
test: unfairness test
1 parent 97d496b commit d5bc382

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_collectors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def define_constraints(constraint_factory: ConstraintFactory):
572572
lambda entity: entity.value
573573
))
574574
.reward(SimpleScore.ONE,
575-
lambda balance: balance.unfairness().multiply(BigDecimal.valueOf(1000)).intValue())
575+
lambda balance: balance.unfairness().movePointRight(3).intValue())
576576
.as_constraint('Balanced value')
577577
]
578578

@@ -594,8 +594,8 @@ def define_constraints(constraint_factory: ConstraintFactory):
594594

595595
entity_c.value = value_2
596596

597-
assert score_manager.explain(problem).score == SimpleScore.of(2) // FIXME
597+
assert score_manager.explain(problem).score == SimpleScore.of(707)
598598

599599
entity_b.value = value_2
600600

601-
assert score_manager.explain(problem).score == SimpleScore.of(4) // FIXME
601+
assert score_manager.explain(problem).score == SimpleScore.of(707)

0 commit comments

Comments
 (0)