From 21b94d2de5bdf2d8c4e8107e4c197a2abc1e7275 Mon Sep 17 00:00:00 2001 From: Ryan Boehning Date: Sat, 17 Feb 2018 14:01:06 -0800 Subject: 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 --- src/ansi_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ansi_test.go') 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) -- cgit v1.2.3