Yasuhiro Matsumoto 8 years ago
parent
commit
50daa11e01
1 changed files with 5 additions and 0 deletions
  1. 5 0
      isatty_others_test.go

+ 5 - 0
isatty_others_test.go

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