Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Mar 4, 2017
1 parent 018779d commit 50daa11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isatty_others_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 50daa11

Please sign in to comment.