mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-16 04:33:51 -07:00
[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:
committed by
Junegunn Choi
parent
88d74a15aa
commit
71d11de7ca
@@ -1,7 +1,6 @@
|
|||||||
package fzf
|
package fzf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -207,7 +206,7 @@ func TestExtractColor(t *testing.T) {
|
|||||||
if output != "hello world" {
|
if output != "hello world" {
|
||||||
t.Errorf("Invalid output: %s %v", output, []rune(output))
|
t.Errorf("Invalid output: %s %v", output, []rune(output))
|
||||||
}
|
}
|
||||||
fmt.Println(src, ansiOffsets, clean)
|
t.Log(src, ansiOffsets, clean)
|
||||||
assertion(ansiOffsets, state)
|
assertion(ansiOffsets, state)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user