From a50ee9ce6f1e27541cac9ae62339248e503e3267 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 4 Jun 2021 15:33:33 +0800 Subject: [PATCH] Update assert module --- go.mod | 2 +- go.sum | 6 ++++-- halfwidth_test.go | 2 +- html_test.go | 2 +- unformat_test.go | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index bc44fe3..05982b5 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/huacnlee/go-auto-correct go 1.13 require ( + github.com/longbridgeapp/assert v0.1.0 github.com/pkg/errors v0.8.1 - github.com/stretchr/testify v1.6.1 github.com/tdewolff/parse/v2 v2.4.3 ) diff --git a/go.sum b/go.sum index c0739b9..df6cc39 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,14 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/longbridgeapp/assert v0.1.0 h1:KkQlHUJSpuUFkUDjwBJgghFl31+wwSDHTq/WRrvLjko= +github.com/longbridgeapp/assert v0.1.0/go.mod h1:ew3umReliXtk1bBG4weVURxdvR0tsN+rCEfjnA4YfxI= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/tdewolff/parse/v2 v2.4.3 h1:k24zHgTRGm7LkvbTEreuavyZTf0k8a/lIenggv62OiU= github.com/tdewolff/parse/v2 v2.4.3/go.mod h1:WzaJpRSbwq++EIQHYIRTpbYKNA3gn9it1Ik++q4zyho= github.com/tdewolff/test v1.0.6/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= diff --git a/halfwidth_test.go b/halfwidth_test.go index d6f1272..a33d77c 100644 --- a/halfwidth_test.go +++ b/halfwidth_test.go @@ -3,7 +3,7 @@ package autocorrect import ( "testing" - "github.com/stretchr/testify/assert" + "github.com/longbridgeapp/assert" ) func Test_haftwidth(t *testing.T) { diff --git a/html_test.go b/html_test.go index 358c0f2..13d89ed 100644 --- a/html_test.go +++ b/html_test.go @@ -6,7 +6,7 @@ import ( "regexp" "testing" - "github.com/stretchr/testify/assert" + "github.com/longbridgeapp/assert" ) var ( diff --git a/unformat_test.go b/unformat_test.go index 9e2615d..0ae4b89 100644 --- a/unformat_test.go +++ b/unformat_test.go @@ -3,7 +3,7 @@ package autocorrect import ( "testing" - "github.com/stretchr/testify/assert" + "github.com/longbridgeapp/assert" ) func TestUnformat(t *testing.T) {