Skip to content

Commit

Permalink
changed the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
korovindenis committed Dec 30, 2023
1 parent 7fdb732 commit eb22f6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cobra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@ func TestStringInSlice(t *testing.T) {
list: []string{"orange", "banana", "apple", "grape"},
expected: false,
},
{
name: "String in slice (case-insensitive)",
a: "APPLE",
list: []string{"orange", "banana", "apple", "grape"},
expected: false,
},
{
name: "String not in slice (case-insensitive)",
a: "PEAR",
Expand All @@ -156,6 +150,12 @@ func TestStringInSlice(t *testing.T) {
list: []string{"orange", "banana", "apple", "grape"},
expected: false,
},
{
name: "Empty strings match",
a: "",
list: []string{"orange", ""},
expected: true,
},
{
name: "Empty string in empty slice",
a: "",
Expand Down

0 comments on commit eb22f6c

Please sign in to comment.