Browse Source

add test for non-Windows

Yasuhiro Matsumoto 8 years ago
parent
commit
6edd7e33e0
1 changed files with 14 additions and 0 deletions
  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")
+	}
+}