From 580722c9b82090d9ddc334575e4f7860b9716295 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 16 Jul 2024 18:20:24 +0200 Subject: [PATCH] fix tests --- command_test.go | 14 +++++++------- flag_test.go | 2 +- spec_test.go | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/command_test.go b/command_test.go index 9877d88..3eb73e7 100644 --- a/command_test.go +++ b/command_test.go @@ -54,7 +54,7 @@ func TestCommand(t *testing.T) { Expect(carapace.ActionStyledValuesDescribed( "--string", "string flag", style.Blue, ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("parsing", "interspersed", "--bool", "p1", "--string", ""). Expect(carapace.ActionValues( @@ -80,39 +80,39 @@ func TestCommand(t *testing.T) { "--bool", "bool flag", style.Default, "--string", "string flag", style.Blue, ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("persistentflags", "--"). Expect(carapace.ActionStyledValuesDescribed( "--bool", "bool flag", style.Default, "--string", "string flag", style.Blue, ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("persistentflags", "subcommand", "--"). Expect(carapace.ActionStyledValuesDescribed( "--bool", "bool flag", style.Default, "--string", "string flag", style.Blue, ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("persistentflags", "--bool", "subcommand", "--"). Expect(carapace.ActionStyledValuesDescribed( "--string", "string flag", style.Blue, ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("exclusiveflags", "--"). Expect(carapace.ActionStyledValuesDescribed( "--bool", "bool flag", style.Default, "--string", "string flag", style.Blue, ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("exclusiveflags", "--bool", "--"). Expect(carapace.ActionValues(). NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) s.Run("run", "shell", "--color="). Expect(carapace.ActionValues( diff --git a/flag_test.go b/flag_test.go index 346a086..49b4cc7 100644 --- a/flag_test.go +++ b/flag_test.go @@ -149,6 +149,6 @@ func TestFlag(t *testing.T) { Expect(carapace.ActionValuesDescribed( "--repeatable", "repeatable", ).NoSpace('.'). - Tag("flags")) + Tag("longhand flags")) }) } diff --git a/spec_test.go b/spec_test.go index e1f806a..2e5bdf3 100644 --- a/spec_test.go +++ b/spec_test.go @@ -31,14 +31,14 @@ func TestNonposix(t *testing.T) { "-styled", "nonposix shorthand"). NoSpace('.'). Style(style.Carapace.FlagArg). - Tag("flags")) + Tag("shorthand flags")) s.Run("--m"). Expect(carapace.ActionValuesDescribed( "--mixed", "mixed repeatable", ).NoSpace('.'). Style(style.Carapace.FlagNoArg). - Tag("flags")) + Tag("longhand flags")) s.Run("-opt="). Expect(carapace.ActionValues(