17 lines
277 B
Go
17 lines
277 B
Go
package wand
|
|
|
|
import "testing"
|
|
|
|
func TestShortForm(t *testing.T) {
|
|
t.Run(
|
|
"undefined short form",
|
|
testExec(
|
|
testCase{
|
|
impl: ShortForm(Command("foo", func(struct{ Foo int }) {}), "f", "foo", "b"),
|
|
command: "foo -b",
|
|
},
|
|
"option not supported",
|
|
),
|
|
)
|
|
}
|