Skip to content

Commit 6f404f2

Browse files
Abirdcflyldez
authored andcommitted
fix test error
Signed-off-by: Abirdcfly <[email protected]>
1 parent a80607c commit 6f404f2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
4d63.com/gochecknoglobals v0.1.0
7-
github.com/Abirdcfly/dupword v0.0.6
7+
github.com/Abirdcfly/dupword v0.0.7
88
github.com/Antonboom/errname v0.1.7
99
github.com/Antonboom/nilnil v0.1.1
1010
github.com/BurntSushi/toml v1.2.0

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/dupword.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func duplicateWordInComments() {
99
}
1010

1111
func duplicateWordInStr() {
12-
a := "this line include duplicate word and and" // want `Duplicate words \(and\) found`
13-
b := "print the\n the line, print the the \n\t the line.and and" // want `Duplicate words \(the,and\) found`
12+
a := "this line include duplicate word and and" // want `Duplicate words \(and\) found`
13+
b := "print the\n the line, print the the \n\t the line. and and" // want `Duplicate words \(and,the\) found`
1414
fmt.Println(a, b)
1515
}

0 commit comments

Comments
 (0)