diff options
| author | Ryan Boehning <ryanboehning@gmail.com> | 2018-02-17 14:01:06 -0800 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2018-03-13 14:56:55 +0900 |
| commit | 21b94d2de5bdf2d8c4e8107e4c197a2abc1e7275 (patch) | |
| tree | d7255fcd66e512a40016ac220d84574f22c0d551 /src/ansi_test.go | |
| parent | 24236860c89242ac0a341ff911c93f25032dc051 (diff) | |
| download | fzf-21b94d2de5bdf2d8c4e8107e4c197a2abc1e7275.tar.gz | |
Make fzf pass go vet
Add String() methods to types, so they can be printed with %s. Change
some %s format specifiers to %v, when the default string representation
is good enough. In Go 1.10, `go test` triggers a parallel `go vet`. So
this also makes fzf pass `go test`.
Close #1236
Close #1219
Diffstat (limited to 'src/ansi_test.go')
| -rw-r--r-- | src/ansi_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi_test.go b/src/ansi_test.go index a5366770..d94ae931 100644 --- a/src/ansi_test.go +++ b/src/ansi_test.go @@ -26,7 +26,7 @@ func TestExtractColor(t *testing.T) { output, ansiOffsets, newState := extractColor(src, state, nil) state = newState if output != "hello world" { - t.Errorf("Invalid output: %s %s", output, []rune(output)) + t.Errorf("Invalid output: %s %v", output, []rune(output)) } fmt.Println(src, ansiOffsets, clean) assertion(ansiOffsets, state) |
