summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-05 12:54:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-08-05 12:54:53 (GMT)
commitc3da25f3d903568aa067ba0184791aad557d059c (patch)
tree578d1a30b234800a08471a1cf23880da2ae46684 /Tests
parentac00b37ea2cf72af9133e53d55597e34b3fab96e (diff)
parente0d3e6e147acfec93351c4ca719777677fc835ba (diff)
downloadCMake-c3da25f3d903568aa067ba0184791aad557d059c.zip
CMake-c3da25f3d903568aa067ba0184791aad557d059c.tar.gz
CMake-c3da25f3d903568aa067ba0184791aad557d059c.tar.bz2
Merge topic 'string-JSON-error-typo'
e0d3e6e147 string(JSON): Fix typo in error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7547
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/string/JSON.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/string/JSON.cmake b/Tests/RunCMake/string/JSON.cmake
index ab4194d..255c16a 100644
--- a/Tests/RunCMake/string/JSON.cmake
+++ b/Tests/RunCMake/string/JSON.cmake
@@ -129,7 +129,7 @@ assert_strequal("${error}" "member '0' not found")
string(JSON result ERROR_VARIABLE error GET "${json1}" array 10)
assert_strequal("${result}" "array-10-NOTFOUND")
-assert_strequal("${error}" "expected an index less then 4 got '10'")
+assert_strequal("${error}" "expected an index less than 4 got '10'")
string(JSON result ERROR_VARIABLE error GET "${json1}" array 2 some notThere)
assert_strequal("${result}" "array-2-some-notThere-NOTFOUND")
@@ -240,7 +240,7 @@ endif()
string(JSON result ERROR_VARIABLE error MEMBER "${json1}" values 100)
assert_strequal("${result}" "values-100-NOTFOUND")
-assert_strequal("${error}" "expected an index less then 5 got '100'")
+assert_strequal("${error}" "expected an index less than 5 got '100'")
# Test length loops
string(JSON arrayLength ERROR_VARIABLE error LENGTH "${json1}" types array)
@@ -301,7 +301,7 @@ assert_json_equal("${error}" "${result}"
string(JSON result ERROR_VARIABLE error REMOVE ${json2} array 100)
assert_strequal("${result}" "array-100-NOTFOUND")
-assert_strequal("${error}" "expected an index less then 4 got '100'")
+assert_strequal("${error}" "expected an index less than 4 got '100'")
# Test SET
string(JSON result ERROR_VARIABLE error SET ${json2} new 5)