Yasuhiro Matsumoto 8 년 전
부모
커밋
50daa11e01
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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")