summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-24 15:53:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-07-24 15:53:54 (GMT)
commit47777942a5b4be182f8e95eb39444a2e55a395a5 (patch)
treecd1559d436b8c447682ecd6ff432c9b243bbd4cf /Tests
parenta96363f8991630e7b3a71efdbe41cdca57954459 (diff)
parentd427f12b7324c13d0b90cf02d2261cce8cf7be84 (diff)
downloadCMake-47777942a5b4be182f8e95eb39444a2e55a395a5.zip
CMake-47777942a5b4be182f8e95eb39444a2e55a395a5.tar.gz
CMake-47777942a5b4be182f8e95eb39444a2e55a395a5.tar.bz2
Merge topic 'math_exp_not'
d427f12b73 math(EXPR): Implement ~(exp_NOT) expression as documented Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3582
Diffstat (limited to 'Tests')
-rw-r--r--Tests/MathTest/CMakeLists.txt2
-rw-r--r--Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/Tests/MathTest/CMakeLists.txt b/Tests/MathTest/CMakeLists.txt
index 5403d29..396f633 100644
--- a/Tests/MathTest/CMakeLists.txt
+++ b/Tests/MathTest/CMakeLists.txt
@@ -16,6 +16,8 @@ set(expressions
"1000 -12*5"
"1000 +12*-5"
"1000 -12*-5"
+ "~~1"
+ "1000 & ~0"
)
set(FILE_EXPRESSIONS "extern void test_expression(int x, int y, const char * text);\n")
diff --git a/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt b/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt
index 9e73ed5..22226f2 100644
--- a/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt
+++ b/Tests/RunCMake/math/MATH-InvalidExpression-stderr.txt
@@ -1,5 +1,5 @@
^CMake Error at MATH-InvalidExpression.cmake:1 \(math\):
- math cannot parse the expression: "INVALID": syntax error, unexpected \$end,
- expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER \(7\).
+ math cannot parse the expression: "INVALID": syntax error, unexpected \$end
+ \(7\).
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)$