File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 55require (
66 github.com/Code-Hex/Neo-cowsay/v2 v2.0.3
77 github.com/Code-Hex/go-wordwrap v1.0.0
8+ github.com/google/go-cmp v0.5.6
89 github.com/jessevdk/go-flags v1.5.0
910 github.com/ktr0731/go-fuzzyfinder v0.5.1
1011 github.com/mattn/go-colorable v0.1.11
Original file line number Diff line number Diff line change 1- github.com/Code-Hex/Neo-cowsay/v2 v2.0.3 h1:mreJLDHRxoFhUvlw/1pFZIkekYVCg1hdMJ49QdZSASA =
2- github.com/Code-Hex/Neo-cowsay/v2 v2.0.3 /go.mod h1:6k40Pwrc2FazLf1BUbmAC36E9LvT+DErjZr30isbXhg =
31github.com/Code-Hex/go-wordwrap v1.0.0 h1:yl5fLyZEz3+hPGbpTRlTQ8mQJ1HXWcTq1FCNR1ch6zM =
42github.com/Code-Hex/go-wordwrap v1.0.0 /go.mod h1:/SsbgkY2Q0aPQRyvXcyQwWYTQOIwSORKe6MPjRVGIWU =
53github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko =
Original file line number Diff line number Diff line change 77 "path/filepath"
88 "strings"
99 "testing"
10+
11+ "github.com/google/go-cmp/cmp"
1012)
1113
1214func TestCLI_Run (t * testing.T ) {
@@ -132,6 +134,7 @@ func TestCLI_Run(t *testing.T) {
132134 }
133135 want := string (content )
134136 if got := stdout .String (); want != got {
137+ t .Log (cmp .Diff (want , got ))
135138 t .Errorf ("want\n %s\n -----got\n %s\n " , want , got )
136139 }
137140 })
You can’t perform that action at this time.
0 commit comments