Skip to content

Commit 332b554

Browse files
committed
Fix typos [skip ci]
1 parent 2a36063 commit 332b554

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/shift_scheduling_sat_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_shift_scheduling_sat
4444
shift_constraints = [
4545
# One or two consecutive days of rest, this is a hard constraint.
4646
[0, 1, 1, 0, 2, 2, 0],
47-
# betweem 2 and 3 consecutive days of night shifts, 1 and 4 are
47+
# between 2 and 3 consecutive days of night shifts, 1 and 4 are
4848
# possible but penalized.
4949
[3, 1, 2, 20, 3, 4, 5]
5050
]
@@ -68,7 +68,7 @@ def test_shift_scheduling_sat
6868
[3, 1, 0]
6969
]
7070

71-
# daily demands for work shifts (morning, afternon, night) for each day
71+
# daily demands for work shifts (morning, afternoon, night) for each day
7272
# of the week starting on Monday.
7373
weekly_cover_demands = [
7474
[2, 3, 1], # Monday

test/support/shift_scheduling_sat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
def negated_bounded_span(works, start, length):
30-
"""Filters an isolated sub-sequence of variables assined to True.
30+
"""Filters an isolated sub-sequence of variables assigned to True.
3131
3232
Extract the span of Boolean variables [start, start + length), negate them,
3333
and if there is variables to the left/right of this span, surround the span by
@@ -227,7 +227,7 @@ def solve_shift_scheduling(params, output_proto):
227227
shift_constraints = [
228228
# One or two consecutive days of rest, this is a hard constraint.
229229
(0, 1, 1, 0, 2, 2, 0),
230-
# betweem 2 and 3 consecutive days of night shifts, 1 and 4 are
230+
# between 2 and 3 consecutive days of night shifts, 1 and 4 are
231231
# possible but penalized.
232232
(3, 1, 2, 20, 3, 4, 5),
233233
]
@@ -251,7 +251,7 @@ def solve_shift_scheduling(params, output_proto):
251251
(3, 1, 0),
252252
]
253253

254-
# daily demands for work shifts (morning, afternon, night) for each day
254+
# daily demands for work shifts (morning, afternoon, night) for each day
255255
# of the week starting on Monday.
256256
weekly_cover_demands = [
257257
(2, 3, 1), # Monday

0 commit comments

Comments
 (0)