Skip to content

Commit

Permalink
Update cts.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis authored and github-actions[bot] committed May 13, 2024
1 parent fc9449b commit fadbe5f
Showing 1 changed file with 155 additions and 0 deletions.
155 changes: 155 additions & 0 deletions cts.json
Original file line number Diff line number Diff line change
Expand Up @@ -4889,6 +4889,97 @@
}
]
},
{
"name": "functions, match, dot in character class",
"selector": "$[?match(@, 'a[.b]c')]",
"document": [
"abc",
"a.c",
"axc"
],
"result": [
"abc",
"a.c"
]
},
{
"name": "functions, match, escaped dot",
"selector": "$[?match(@, 'a\\\\.c')]",
"document": [
"abc",
"a.c",
"axc"
],
"result": [
"a.c"
]
},
{
"name": "functions, match, escaped backslash before dot",
"selector": "$[?match(@, 'a\\\\\\\\.c')]",
"document": [
"abc",
"a.c",
"axc",
"a\\
c"
],
"result": [
"a\\
c"
]
},
{
"name": "functions, match, escaped left square bracket",
"selector": "$[?match(@, 'a\\\\[.c')]",
"document": [
"abc",
"a.c",
"a[
c"
],
"result": [
"a[
c"
]
},
{
"name": "functions, match, escaped right square bracket",
"selector": "$[?match(@, 'a[\\\\].]c')]",
"document": [
"abc",
"a.c",
"a
c",
"a]c"
],
"result": [
"a.c",
"a]c"
]
},
{
"name": "functions, match, explicit caret",
"selector": "$[?match(@, '^ab.*')]",
"document": [
"abc",
"axc",
"ab",
"xab"
],
"result": [
"abc",
"ab"
]
},
{
"name": "functions, match, explicit dollar",
"selector": "$[?match(@, '.*bc$')]",
"document": [
"abc",
"axc",
"ab",
"abcx"
],
"result": [
"abc"
]
},
{
"name": "functions, search, at the end",
"selector": "$[?search(@.a, 'a.*')]",
Expand Down Expand Up @@ -5142,6 +5233,70 @@
"bbab"
]
},
{
"name": "functions, search, dot in character class",
"selector": "$[?search(@, 'a[.b]c')]",
"document": [
"x abc y",
"x a.c y",
"x axc y"
],
"result": [
"x abc y",
"x a.c y"
]
},
{
"name": "functions, search, escaped dot",
"selector": "$[?search(@, 'a\\\\.c')]",
"document": [
"x abc y",
"x a.c y",
"x axc y"
],
"result": [
"x a.c y"
]
},
{
"name": "functions, search, escaped backslash before dot",
"selector": "$[?search(@, 'a\\\\\\\\.c')]",
"document": [
"x abc y",
"x a.c y",
"x axc y",
"x a\\
c y"
],
"result": [
"x a\\
c y"
]
},
{
"name": "functions, search, escaped left square bracket",
"selector": "$[?search(@, 'a\\\\[.c')]",
"document": [
"x abc y",
"x a.c y",
"x a[
c y"
],
"result": [
"x a[
c y"
]
},
{
"name": "functions, search, escaped right square bracket",
"selector": "$[?search(@, 'a[\\\\].]c')]",
"document": [
"x abc y",
"x a.c y",
"x a
c y",
"x a]c y"
],
"result": [
"x a.c y",
"x a]c y"
]
},
{
"name": "functions, value, single-value nodelist",
"selector": "$[?value(@.*)==4]",
Expand Down

0 comments on commit fadbe5f

Please sign in to comment.