diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-08-15 23:05:05 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-08-15 23:05:05 +0200 |
commit | 08c71acc8729aa51b389c0583bca351077e5e44e (patch) | |
tree | 4857810b459a3fe82ffb8e3b16ab992f432b2579 /Tests/CMakeTests | |
parent | 52d9c38e72a458bd3575aefab02694d5916bfd91 (diff) | |
download | cmake-08c71acc8729aa51b389c0583bca351077e5e44e.tar.gz |
CMake.List test: explicitely test with lists containing only an empty string
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/ListTest.cmake.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in index 07fc7c6d0b..a167503547 100644 --- a/Tests/CMakeTests/ListTest.cmake.in +++ b/Tests/CMakeTests/ListTest.cmake.in @@ -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" "") |