mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 05:23:33 +02:00
rewrite checkpoint
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user