diff --git a/tests/name_selector.json b/tests/name_selector.json index 0fadc59..36fbb1f 100644 --- a/tests/name_selector.json +++ b/tests/name_selector.json @@ -199,6 +199,16 @@ "A" ] }, + { + "name": "double quotes, supplementary plane character", + "selector": "$[\"𝄞\"]", + "document": { + "𝄞": "A" + }, + "result": [ + "A" + ] + }, { "name": "double quotes, escaped double quote", "selector": "$[\"\\\"\"]", @@ -404,6 +414,31 @@ "selector": "$[\"\\u{10ffff}\"]", "invalid_selector": true }, + { + "name": "double quotes, single high surrogate", + "selector": "$[\"\\uD800\"]", + "invalid_selector": true + }, + { + "name": "double quotes, single low surrogate", + "selector": "$[\"\\uDC00\"]", + "invalid_selector": true + }, + { + "name": "double quotes, high high surrogate", + "selector": "$[\"\\uD800\\uD800\"]", + "invalid_selector": true + }, + { + "name": "double quotes, low low surrogate", + "selector": "$[\"\\uDC00\\uDC00\"]", + "invalid_selector": true + }, + { + "name": "double quotes, surrogate non-surrogate", + "selector": "$[\"\\uD800\\u1234\"]", + "invalid_selector": true + }, { "name": "single quotes", "selector": "$['a']",