From c99b463c5dfb7020fc0024edddb7715d585c7e11 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Mon, 12 Sep 2022 00:02:44 +0800 Subject: [PATCH] fix test error Signed-off-by: Abirdcfly --- go.mod | 2 +- go.sum | 4 ++-- test/testdata/dupword.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 7addaf137ccb..322dc74baf37 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( 4d63.com/gochecknoglobals v0.1.0 - github.com/Abirdcfly/dupword v0.0.6 + github.com/Abirdcfly/dupword v0.0.7 github.com/Antonboom/errname v0.1.7 github.com/Antonboom/nilnil v0.1.1 github.com/BurntSushi/toml v1.2.0 diff --git a/go.sum b/go.sum index 92ccc059c942..a33368febecb 100644 --- a/go.sum +++ b/go.sum @@ -38,8 +38,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Abirdcfly/dupword v0.0.6 h1:zFUWpiEUF1sRQ/ANkp2djxMetUmamQojuCnGSP+7UYM= -github.com/Abirdcfly/dupword v0.0.6/go.mod h1:K/4M1kj+Zh39d2aotRwypvasonOyAMH1c/IZJzE0dmk= +github.com/Abirdcfly/dupword v0.0.7 h1:z14n0yytA3wNO2gpCD/jVtp/acEXPGmYu0esewpBt6Q= +github.com/Abirdcfly/dupword v0.0.7/go.mod h1:K/4M1kj+Zh39d2aotRwypvasonOyAMH1c/IZJzE0dmk= github.com/Antonboom/errname v0.1.7 h1:mBBDKvEYwPl4WFFNwec1CZO096G6vzK9vvDQzAwkako= github.com/Antonboom/errname v0.1.7/go.mod h1:g0ONh16msHIPgJSGsecu1G/dcF2hlYR/0SddnIAGavU= github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= diff --git a/test/testdata/dupword.go b/test/testdata/dupword.go index 3e4897d670d6..16220f132c6d 100644 --- a/test/testdata/dupword.go +++ b/test/testdata/dupword.go @@ -9,7 +9,7 @@ func duplicateWordInComments() { } func duplicateWordInStr() { - a := "this line include duplicate word and and" // want `Duplicate words \(and\) found` - b := "print the\n the line, print the the \n\t the line.and and" // want `Duplicate words \(the,and\) found` + a := "this line include duplicate word and and" // want `Duplicate words \(and\) found` + b := "print the\n the line, print the the \n\t the line. and and" // want `Duplicate words \(and,the\) found` fmt.Println(a, b) }