Writing the right tests is very important since it would allow you to catch wrong behaviours of functions in presence of specific input values
However, to use only one test is not enough
Test your function by using different kinds of input, including the unusual ones, e.g. empty strings or a list containing the same value twice or more times