Skip to content

Commit 557b777

Browse files
committed
test
1 parent 095c73b commit 557b777

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/sudoku/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func main() {
120120
defer close(ch)
121121
data, err := os.ReadFile(args[1])
122122
if err != nil {
123-
log.Fatal(err)
123+
panic(err)
124124
}
125125
for len(data) > 0 {
126126
line, rest, _ := bytes.Cut(data, []byte{'\n'})
@@ -132,7 +132,7 @@ func main() {
132132
}()
133133
dlxSudoku.DoWork = func(line []byte) [][]byte {
134134
xc := dlx.NewDancer()
135-
ans := []byte(string(line))
135+
ans := bytes.Clone(line)
136136
res := xc.Dance(sudokuDLX(bytes.NewReader(line)))
137137
for _, opt := range <-res.Solutions {
138138
x := int(opt[0][1] - '0')

mcc_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func solve(matrix string) {
1919
}
2020
}
2121

22-
func ExampleDancer_xc() {
22+
func ExampleNewDancer() {
2323
xcInput := `
2424
2525
| A simple example
@@ -42,7 +42,7 @@ D E G
4242
// [C E F]
4343
}
4444

45-
func ExampleDancer_xcc() {
45+
func ExampleNewDancer_xcc() {
4646
xccInput := `
4747
|A simple example of color controls
4848
A B C | X Y
@@ -60,7 +60,7 @@ C Y:1
6060
// [B X:1]
6161
}
6262

63-
func ExampleDancer_mcc() {
63+
func ExampleNewDancer_mcc() {
6464
mccInput := `
6565
| A simple example of color controls
6666

0 commit comments

Comments
 (0)