parse_test: test unwanted stdin

This commit is contained in:
Lars Gierth 2015-05-20 04:23:43 +02:00
parent 7157574619
commit 4e0ca860e9

View File

@ -268,4 +268,7 @@ func TestArgumentParsing(t *testing.T) {
fstdin = fileToSimulateStdin(t, "stdin1")
test([]string{"stdinenablednotvariadic2args", "value1"}, fstdin, []string{"value1", "stdin1"})
test([]string{"stdinenablednotvariadic2args", "value1", "value2"}, fstdin, []string{"value1", "value2"})
fstdin = fileToSimulateStdin(t, "stdin1")
test([]string{"noarg"}, fstdin, []string{})
}