diff --git a/opts/parser_test.go b/opts/parser_test.go index 036a84e..9690c92 100644 --- a/opts/parser_test.go +++ b/opts/parser_test.go @@ -313,9 +313,9 @@ func TestParseShortOptionWithEqualBadValue(t *testing.T) { } func TestParseLongOptionMissingValue(t *testing.T) { - opt := opts.Int("fruit", "f", 0, "") + opt := opts.Float("fruit-price", "f", 0, "") set := opts.Set{opt} - args := []string{"--fruit"} + args := []string{"--fruit-price"} parser := opts.NewParser(args, set, false) _, err := parser.Parse() if err == nil { @@ -324,7 +324,7 @@ func TestParseLongOptionMissingValue(t *testing.T) { } func TestParseShortOptionMissingValue(t *testing.T) { - opt := opts.Int("fruit", "f", 0, "") + opt := opts.Float("fruit-price", "f", 0, "") set := opts.Set{opt} args := []string{"-f"} parser := opts.NewParser(args, set, false)