Skip to content

Commit

Permalink
docs: ROOM variable naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancolgate authored and triceo committed Feb 21, 2025
1 parent 43beafe commit 4746511
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import ai.timefold.solver.test.api.score.stream.ConstraintVerifier;
{testannotation}
class TimetableConstraintProviderTest {
private static final Room ROOM = new Room("Room1");
private static final Room ROOM1 = new Room("Room1");
private static final Timeslot TIMESLOT1 = new Timeslot(DayOfWeek.MONDAY, LocalTime.of(9,0), LocalTime.NOON);
private static final Timeslot TIMESLOT2 = new Timeslot(DayOfWeek.TUESDAY, LocalTime.of(9,0), LocalTime.NOON);
Expand Down Expand Up @@ -100,4 +100,4 @@ So with a constraint weight of `10hard` it would reduce the score by `-10hard`.
Notice how `ConstraintVerifier` ignores the constraint weight during testing - even
if those constraint weights are hard coded in the `ConstraintProvider` - because
constraints weights change regularly before going into production.
This way, constraint weight tweaking does not break the unit tests.
This way, constraint weight tweaking does not break the unit tests.

0 comments on commit 4746511

Please sign in to comment.