CMake.List test: explicitely test with lists containing only an empty string

This commit is contained in:
Rolf Eike Beer 2012-08-15 23:05:05 +02:00
parent 52d9c38e72
commit 08c71acc87
1 changed files with 11 additions and 0 deletions

View File

@ -86,3 +86,14 @@ TEST("REVERSE result" "ken;brad;bill;andy")
set(result bill andy bill brad ken ken ken)
list(REMOVE_DUPLICATES result)
TEST("REMOVE_DUPLICATES result" "bill;andy;brad;ken")
# these commands should just do nothing if the list is already empty
set(result "")
list(REMOVE_DUPLICATES result)
TEST("REMOVE_DUPLICATES empty result" "")
list(REVERSE result)
TEST("REVERSE empty result" "")
list(SORT result)
TEST("SORT empty result" "")