Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jul 31, 2023
1 parent 06cf4f0 commit 1bdf072
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example/cmd/multiparts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ func TestMultiparts(t *testing.T) {
Prefix("VALUE=one,FILE=").
NoSpace(',', '/', '='))

s.Run("multiparts", "--none-zero", "").
Expect(carapace.ActionMessage("invalid value for n [ActionValuesDescribed]: 0").
Usage("multiparts without divider limited to 0"))

s.Run("multiparts", "--none-one", "").
Expect(carapace.ActionValues("a", "b").
Usage("multiparts without divider limited to 1"))

s.Run("multiparts", "--none-two", "").
Expect(carapace.ActionValuesDescribed(
"a", "zero",
Expand Down

0 comments on commit 1bdf072

Please sign in to comment.