diff --git a/cts.json b/cts.json index 5c113f6..4542826 100644 --- a/cts.json +++ b/cts.json @@ -4824,6 +4824,36 @@ "a𐄁b" ] }, + { + "name": "functions, match, dot matcher on \\u2028", + "selector": "$[?match(@, '.')]", + "document": [ + "
", + "\r", + "\n", + true, + [], + {} + ], + "result": [ + "
" + ] + }, + { + "name": "functions, match, dot matcher on \\u2029", + "selector": "$[?match(@, '.')]", + "document": [ + "
", + "\r", + "\n", + true, + [], + {} + ], + "result": [ + "
" + ] + }, { "name": "functions, match, result cannot be compared", "selector": "$[?match(@.a, 'a.*')==true]", @@ -5040,6 +5070,40 @@ "a𐄁bc" ] }, + { + "name": "functions, search, dot matcher on \\u2028", + "selector": "$[?search(@, '.')]", + "document": [ + "
", + "\r
\n", + "\r", + "\n", + true, + [], + {} + ], + "result": [ + "
", + "\r
\n" + ] + }, + { + "name": "functions, search, dot matcher on \\u2029", + "selector": "$[?search(@, '.')]", + "document": [ + "
", + "\r
\n", + "\r", + "\n", + true, + [], + {} + ], + "result": [ + "
", + "\r
\n" + ] + }, { "name": "functions, search, result cannot be compared", "selector": "$[?search(@.a, 'a.*')==true]", diff --git a/tests/functions/match.json b/tests/functions/match.json index 8c3b253..c4a7243 100644 --- a/tests/functions/match.json +++ b/tests/functions/match.json @@ -71,6 +71,18 @@ "document": ["a\uD800\uDD01b", "ab", "1", true, [], {}], "result": ["a\uD800\uDD01b"] }, + { + "name": "dot matcher on \\u2028", + "selector": "$[?match(@, '.')]", + "document": ["\u2028", "\r", "\n", true, [], {}], + "result": ["\u2028"] + }, + { + "name": "dot matcher on \\u2029", + "selector": "$[?match(@, '.')]", + "document": ["\u2029", "\r", "\n", true, [], {}], + "result": ["\u2029"] + }, { "name": "result cannot be compared", "selector" : "$[?match(@.a, 'a.*')==true]", diff --git a/tests/functions/search.json b/tests/functions/search.json index c536af8..26e0fde 100644 --- a/tests/functions/search.json +++ b/tests/functions/search.json @@ -86,6 +86,18 @@ "document": ["a\uD800\uDD01bc", "abc", "1", true, [], {}], "result": ["a\uD800\uDD01bc"] }, + { + "name": "dot matcher on \\u2028", + "selector": "$[?search(@, '.')]", + "document": ["\u2028", "\r\u2028\n", "\r", "\n", true, [], {}], + "result": ["\u2028", "\r\u2028\n"] + }, + { + "name": "dot matcher on \\u2029", + "selector": "$[?search(@, '.')]", + "document": ["\u2029", "\r\u2029\n", "\r", "\n", true, [], {}], + "result": ["\u2029", "\r\u2029\n"] + }, { "name": "result cannot be compared", "selector" : "$[?search(@.a, 'a.*')==true]",