-
Notifications
You must be signed in to change notification settings - Fork 1
/
ukodus_test.go
72 lines (66 loc) · 895 Bytes
/
ukodus_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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package main
import "testing"
func BenchmarkSolver(b *testing.B) {
samples = []string{
// hard puzzle; from Plan 9's /sys/games/lib/sudoku/boards/hard-2005-05-23.su
`....185.9
..54.....
..4.69.27
74.......
.1.....5.
.......86
57.68.4..
.....76..
8.319....
627318549
985472163
134569827
746835912
318926754
259741386
572683491
491257638
863194275
`,
// medium puzzle; from Plan 9's /sys/games/lib/sudoku/boards/medium-2005-05-27.su
`....28369
.29.3....
...1....8
..8...1..
9.3...8.4
..1...9..
4....7...
....5.41.
38624....
157428369
829635741
634179258
278964135
963512874
541783926
415397682
792856413
386241597
`,
// easy; from Plan 9's /sys/games/lib/sudoku/boards/easy-2005-01-21.su
`.6234.75.
1....56..
57.....4.
....948..
4.......6
..583....
.3.....91
..64....7
.59.8326.
962341758
148975623
573268149
321694875
487512936
695837412
834726591
216459387
759183264
`,
}
}