This commit is contained in:
2025-03-10 22:20:51 +02:00
parent 0148583f5b
commit cd8c2ee09e
6 changed files with 156 additions and 12 deletions

View File

@@ -7,10 +7,22 @@ func TestCleanInput(t *testing.T) {
input string
expected []string
}{
{
input: " ",
expected: []string{},
},
{
input: " hello ",
expected: []string{"hello"},
},
{
input: " hello world ",
expected: []string{"hello", "world"},
},
{
input: " HellO World ",
expected: []string{"hello", "world"},
},
{
input: "Charmander Bulbasaur PIKACHU",
expected: []string{"charmander", "bulbasaur", "pikachu"},