summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVlastimil Ovčáčík <vovcacik@github.ovcacik.org>2021-09-16 19:40:54 +0200
committerJunegunn Choi <junegunn.c@gmail.com>2021-09-24 16:04:36 +0900
commit71d11de7ca561b8fa4cce9b71ce99aadad293aec (patch)
tree7f88ed3347a8426440a6a8cc9f324e1fc7e0f597 /src
parent88d74a15aaeb1e1445180910520e2147060dfc9b (diff)
[tests] Change tests to output to stdout only with verbose flag
This hides stdout output unless "go test -v" was run.
Diffstat (limited to 'src')
-rw-r--r--src/ansi_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ansi_test.go b/src/ansi_test.go
index 36ed0c7d..9ad78eb3 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)
}