diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-15 13:57:49 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-15 13:57:49 (GMT) |
commit | cb2a9be622d612c462ec901bce6a5bab7b1462d7 (patch) | |
tree | dd2230f0bc34c97853298cc0f56bb46288c311c5 /Tests | |
parent | 3b92585cf088d2d316755b77e51a13b4c0173b8b (diff) | |
download | CMake-cb2a9be622d612c462ec901bce6a5bab7b1462d7.zip CMake-cb2a9be622d612c462ec901bce6a5bab7b1462d7.tar.gz CMake-cb2a9be622d612c462ec901bce6a5bab7b1462d7.tar.bz2 |
ENH: Change REMOVE and REMOVE_ITEM to REMOVE_AT and REMOVE_ITEM
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/ListTest.cmake.in | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in index d1e8c2b..9e72d14 100644 --- a/Tests/CMakeTests/ListTest.cmake.in +++ b/Tests/CMakeTests/ListTest.cmake.in @@ -2,7 +2,7 @@ MACRO(TEST command expected) IF("x${result}" STREQUAL "x${expected}") MESSAGE("TEST \"${command}\" success: \"${result}\" expected: \"${expected}\"") ELSE("x${result}" STREQUAL "x${expected}") - MESSAGE(SEND_ERROR "TEST \"${command}\" failed: \"${result}\" expected: \"${expected}\"") + MESSAGE(SEND_ERROR "${CMAKE_CURRENT_LIST_LINE}: TEST \"${command}\" failed: \"${result}\" expected: \"${expected}\"") ENDIF("x${result}" STREQUAL "x${expected}") ENDMACRO(TEST command expected) @@ -48,13 +48,17 @@ LIST(INSERT result -1 bill ken) TEST("INSERT result -1 bill ken" "andy;bill;ken;brad") SET(result andy bill brad ken bob) -LIST(REMOVE result bob) -TEST("REMOVE result bob" "andy;bill;brad;ken") +LIST(REMOVE_ITEM result bob) +TEST("REMOVE_ITEM result bob" "andy;bill;brad;ken") SET(result andy bill bob brad ken peter) -LIST(REMOVE result peter bob) -TEST("REMOVE result peter bob" "andy;bill;brad;ken") +LIST(REMOVE_ITEM result peter bob) +TEST("REMOVE_ITEM result peter bob" "andy;bill;brad;ken") + +SET(result bob andy bill bob brad ken bob) +LIST(REMOVE_ITEM result bob) +TEST("REMOVE_ITEM result bob" "andy;bill;brad;ken") SET(result andy bill bob brad ken peter) -LIST(REMOVE_ITEM result 2 -1) -TEST("REMOVE_ITEM result 2 -1" "andy;bill;brad;ken") +LIST(REMOVE_AT result 2 -1) +TEST("REMOVE_AT result 2 -1" "andy;bill;brad;ken") |