Skip to content

Commit

Permalink
Add Explicit Test For Empty Inverse Prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mahadzaryab1 committed Aug 17, 2024
1 parent 63de758 commit 7a82652
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flag_bool_with_inverse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,13 @@ func TestBoolWithInverseString(t *testing.T) {
inversePrefix: "nope-",
expected: "--[nope-]env\t",
},
{
testName: "empty inverse prefix",
flagName: "env",
required: true,
inversePrefix: "",
expected: "--[no-]env\t",
},
}

for _, tc := range tcs {
Expand Down

0 comments on commit 7a82652

Please sign in to comment.