Yasuhiro Matsumoto %!s(int64=8) %!d(string=hai) anos
pai
achega
50daa11e01
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      isatty_others_test.go

+ 5 - 0
isatty_others_test.go

@@ -7,6 +7,11 @@ import (
 	"testing"
 )
 
+func TestTerminal(t *testing.T) {
+	// test for non-panic
+	IsTerminal(os.Stdout.Fd())
+}
+
 func TestCygwinPipeName(t *testing.T) {
 	if IsCygwinTerminal(os.Stdout.Fd()) {
 		t.Fatal("should be false always")