diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-15 14:14:16 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-15 14:14:16 (GMT) |
commit | ed1ea24cef3551308865fb05d97a354b852fca6c (patch) | |
tree | 265806e67a2a3672a100a3c71625c6b77c3cdc37 /Tests/CMakeTests/ListTest.cmake.in | |
parent | cb2a9be622d612c462ec901bce6a5bab7b1462d7 (diff) | |
download | CMake-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.in | 8 |
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) |