From 71d11de7ca561b8fa4cce9b71ce99aadad293aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlastimil=20Ov=C4=8D=C3=A1=C4=8D=C3=ADk?= Date: Thu, 16 Sep 2021 19:40:54 +0200 Subject: [PATCH] [tests] Change tests to output to stdout only with verbose flag This hides stdout output unless "go test -v" was run. --- src/ansi_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ansi_test.go b/src/ansi_test.go index 36ed0c7..9ad78eb 100644 --- a/src/ansi_test.go +++ b/src/ansi_test.go @@ -1,7 +1,6 @@ package fzf import ( - "fmt" "math/rand" "regexp" "strings" @@ -207,7 +206,7 @@ func TestExtractColor(t *testing.T) { if output != "hello world" { t.Errorf("Invalid output: %s %v", output, []rune(output)) } - fmt.Println(src, ansiOffsets, clean) + t.Log(src, ansiOffsets, clean) assertion(ansiOffsets, state) }