This commit is contained in:
12
main_test.go
12
main_test.go
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user