Ver Fonte

add test for non-Windows

Yasuhiro Matsumoto há 8 anos atrás
pai
commit
6edd7e33e0
1 ficheiros alterados com 14 adições e 0 exclusões
  1. 14 0
      isatty_non_windows_test.go

+ 14 - 0
isatty_non_windows_test.go

@@ -0,0 +1,14 @@
+// +build !windows
+
+package isatty
+
+import (
+	"os"
+	"testing"
+)
+
+func TestCygwinPipeName(t *testing.T) {
+	if IsCygwinTerminal(os.Stdout.Fd()) {
+		t.Fatal("should be false always")
+	}
+}