Files
jira/vendor/github.com/AlecAivazis/survey/tests/input.go
T
2017-08-13 18:23:38 -07:00

28 lines
510 B
Go

package main
import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
)
var val = ""
var table = []TestUtil.TestTableEntry{
{
"no default", &survey.Input{Message: "Hello world"}, &val,
},
{
"default", &survey.Input{Message: "Hello world", Default: "default"}, &val,
},
{
"no help, send '?'", &survey.Input{Message: "Hello world"}, &val,
},
{
"input text in random location", &survey.Input{Message: "Hello"}, &val,
},
}
func main() {
TestUtil.RunTable(table)
}