changed the tests

This commit is contained in:
Denis Korovin 2023-12-30 11:54:09 +03:00
parent 7fdb732a47
commit eb22f6c157

View file

@ -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",
@ -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: "",