Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
test: unfairness test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Chianelli authored and triceo committed Jul 8, 2024
1 parent 97d496b commit 18ee7cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def define_constraints(constraint_factory: ConstraintFactory):
lambda entity: entity.value
))
.reward(SimpleScore.ONE,
lambda balance: balance.unfairness().multiply(BigDecimal.valueOf(1000)).intValue())
lambda balance: balance.unfairness().movePointRight(3).intValue())
.as_constraint('Balanced value')
]

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

entity_c.value = value_2

assert score_manager.explain(problem).score == SimpleScore.of(2) // FIXME
assert score_manager.explain(problem).score == SimpleScore.of(707)

entity_b.value = value_2

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

0 comments on commit 18ee7cd

Please sign in to comment.