diff options
author | Daniel Chabrowski <dantezstudio@gmail.com> | 2018-07-01 16:30:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-07-05 17:53:49 (GMT) |
commit | a08154d493a08f1fc1473038f897eb5468a8f79b (patch) | |
tree | dc4c47de31730f708d0f95874ca1be97aede81b9 /Tests/CMakeTests | |
parent | dc70284c811a3183295371903d965658a9d2f8e0 (diff) | |
download | CMake-a08154d493a08f1fc1473038f897eb5468a8f79b.zip CMake-a08154d493a08f1fc1473038f897eb5468a8f79b.tar.gz CMake-a08154d493a08f1fc1473038f897eb5468a8f79b.tar.bz2 |
list: Allow inserting at the end of a list
Fixes: #18069
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/ListTest.cmake.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in index 76f5e4f..f517e64 100644 --- a/Tests/CMakeTests/ListTest.cmake.in +++ b/Tests/CMakeTests/ListTest.cmake.in @@ -53,6 +53,10 @@ set(result andy brad) list(INSERT result -1 bill ken) TEST("INSERT result -1 bill ken" "andy;bill;ken;brad") +set(result andy brad) +list(INSERT result 2 bill ken) +TEST("INSERT result 2 bill ken" "andy;brad;bill;ken") + set(result andy bill brad ken bob) list(REMOVE_ITEM result bob) TEST("REMOVE_ITEM result bob" "andy;bill;brad;ken") |