Skip to content

Commit aa43c0c

Browse files
Fix box-line column claiming test setup
1 parent 36e5c0b commit aa43c0c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_strategies_core.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,17 @@ def test_box_line_claiming_col() -> None:
7878
cand = candidates(grid)
7979
digit = 4
8080
_clear_digit(cand, digit)
81-
for r in range(3):
82-
cand[r][0].add(digit)
83-
cand[1][1].add(digit)
81+
cand[0][0].add(digit)
82+
cand[1][0].add(digit)
83+
cand[2][1].add(digit)
8484

8585
move = apply_box_line_claiming(grid, cand)
8686

8787
assert move is not None
8888
assert move["strategy"] == "box_line_col"
8989
assert move["box"] == 0
90-
assert digit not in cand[1][1]
90+
assert move["r"] == 2 and move["c"] == 1
91+
assert digit not in cand[2][1]
9192

9293

9394
def test_naked_pair_eliminates_other_candidates() -> None:

0 commit comments

Comments
 (0)