summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-12 15:56:45 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-12 15:56:45 (GMT)
commitc8010cd7fb0f87dd6ceb07679a2840029f4238a3 (patch)
tree1fbdffa0e4b323119760c3693bbd226d301eac33 /Tests/CMakeTests
parenta5be2b77823d6dd2ce1fd6859eb037dd2c939134 (diff)
downloadCMake-c8010cd7fb0f87dd6ceb07679a2840029f4238a3.zip
CMake-c8010cd7fb0f87dd6ceb07679a2840029f4238a3.tar.gz
CMake-c8010cd7fb0f87dd6ceb07679a2840029f4238a3.tar.bz2
ENH: add LIST(CONTAINS ...) patch from "Miguel A. Figueroa-Villanueva, miguelf (AT) ieee.org
added tests for LIST(CONTAINS, SORT, REVERSE) Alex
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/ListTest.cmake.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in
index 58a8435..38fea14 100644
--- a/Tests/CMakeTests/ListTest.cmake.in
+++ b/Tests/CMakeTests/ListTest.cmake.in
@@ -66,3 +66,17 @@ TEST("REMOVE_ITEM result bob" "andy;bill;brad;ken")
SET(result andy bill bob brad ken peter)
LIST(REMOVE_AT result 2 -1)
TEST("REMOVE_AT result 2 -1" "andy;bill;brad;ken")
+
+LIST(CONTAINS mylist ken result)
+TEST("CONTAINS mylist ken result" "TRUE")
+
+LIST(CONTAINS mylist nobody result)
+TEST("CONTAINS mylist nobody result" "FALSE")
+
+SET(result ken bill andy brad)
+LIST(SORT result)
+TEST("SORT result" "andy;bill;brad;ken")
+
+SET(result andy bill brad ken)
+LIST(REVERSE result)
+TEST("REVERSE result" "ken;brad;bill;andy")