summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/ListTest.cmake.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-05-15 14:14:16 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-05-15 14:14:16 (GMT)
commited1ea24cef3551308865fb05d97a354b852fca6c (patch)
tree265806e67a2a3672a100a3c71625c6b77c3cdc37 /Tests/CMakeTests/ListTest.cmake.in
parentcb2a9be622d612c462ec901bce6a5bab7b1462d7 (diff)
downloadCMake-ed1ea24cef3551308865fb05d97a354b852fca6c.zip
CMake-ed1ea24cef3551308865fb05d97a354b852fca6c.tar.gz
CMake-ed1ea24cef3551308865fb05d97a354b852fca6c.tar.bz2
ENH: Fix INSERT to allow inserting to empty list
Diffstat (limited to 'Tests/CMakeTests/ListTest.cmake.in')
-rw-r--r--Tests/CMakeTests/ListTest.cmake.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in
index 9e72d14..58a8435 100644
--- a/Tests/CMakeTests/ListTest.cmake.in
+++ b/Tests/CMakeTests/ListTest.cmake.in
@@ -1,6 +1,6 @@
MACRO(TEST command expected)
IF("x${result}" STREQUAL "x${expected}")
- MESSAGE("TEST \"${command}\" success: \"${result}\" expected: \"${expected}\"")
+ #MESSAGE("TEST \"${command}\" success: \"${result}\" expected: \"${expected}\"")
ELSE("x${result}" STREQUAL "x${expected}")
MESSAGE(SEND_ERROR "${CMAKE_CURRENT_LIST_LINE}: TEST \"${command}\" failed: \"${result}\" expected: \"${expected}\"")
ENDIF("x${result}" STREQUAL "x${expected}")
@@ -41,7 +41,11 @@ TEST("APPEND result brad" "andy;brad")
LIST(APPEND "nonexiting_list3" brad)
SET(result "${nonexiting_list3}")
-TEST("APPEND \"nonexiting_list1\" brad" "brad")
+TEST("APPEND \"nonexiting_list3\" brad" "brad")
+
+LIST(INSERT "nonexiting_list4" 0 andy bill brad ken)
+SET(result "${nonexiting_list4}")
+TEST("APPEND \"nonexiting_list4\" andy bill brad ken" "andy;bill;brad;ken")
SET(result andy brad)
LIST(INSERT result -1 bill ken)