[tests] Change tests to output to stdout only with verbose flag

This hides stdout output unless "go test -v" was run.
This commit is contained in:
Vlastimil Ovčáčík 2021-09-16 19:40:54 +02:00 committed by Junegunn Choi
parent 88d74a15aa
commit 71d11de7ca

View File

@ -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)
}