-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhst_pointing_pair_test.go
33 lines (28 loc) · 1.15 KB
/
hst_pointing_pair_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package sudoku
import (
"testing"
)
func TestPointingPairCol(t *testing.T) {
options := solveTechniqueTestHelperOptions{
targetCells: []CellRef{{3, 1}, {4, 1}, {5, 1}, {6, 1}, {7, 1}, {8, 1}},
pointerCells: []CellRef{{0, 1}, {2, 1}},
targetSame: _GROUP_COL,
targetGroup: 1,
targetNums: IntSlice([]int{7}),
description: "7 is only possible in column 1 of block 0, which means it can't be in any other cell in that column not in that block",
}
humanSolveTechniqueTestHelper(t, "pointingpaircol1.sdk", "Pointing Pair Col", options)
techniqueVariantsTestHelper(t, "Pointing Pair Col")
}
func TestPointingPairRow(t *testing.T) {
options := solveTechniqueTestHelperOptions{
targetCells: []CellRef{{1, 3}, {1, 4}, {1, 5}, {1, 6}, {1, 7}, {1, 8}},
pointerCells: []CellRef{{1, 0}, {1, 2}},
targetSame: _GROUP_ROW,
targetGroup: 1,
targetNums: IntSlice([]int{7}),
description: "7 is only possible in row 1 of block 0, which means it can't be in any other cell in that row not in that block",
}
humanSolveTechniqueTestHelper(t, "pointingpairrow1.sdk", "Pointing Pair Row", options)
techniqueVariantsTestHelper(t, "Pointing Pair Row")
}