Yasuhiro Matsumoto 8 anni fa
parent
commit
50daa11e01
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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")