summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/optional/non-bmp-regex.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/optional/non-bmp-regex.json')
-rw-r--r--json/tests/draft2020-12/optional/non-bmp-regex.json86
1 files changed, 0 insertions, 86 deletions
diff --git a/json/tests/draft2020-12/optional/non-bmp-regex.json b/json/tests/draft2020-12/optional/non-bmp-regex.json
deleted file mode 100644
index d2efb3e..0000000
--- a/json/tests/draft2020-12/optional/non-bmp-regex.json
+++ /dev/null
@@ -1,86 +0,0 @@
-[
- {
- "description": "Proper UTF-16 surrogate pair handling: pattern",
- "comment": "Optional because .Net doesn't correctly handle 32-bit Unicode characters",
- "schema": {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "pattern": "^🐲*$"
- },
- "tests": [
- {
- "description": "matches empty",
- "data": "",
- "valid": true
- },
- {
- "description": "matches single",
- "data": "🐲",
- "valid": true
- },
- {
- "description": "matches two",
- "data": "🐲🐲",
- "valid": true
- },
- {
- "description": "doesn't match one",
- "data": "🐉",
- "valid": false
- },
- {
- "description": "doesn't match two",
- "data": "🐉🐉",
- "valid": false
- },
- {
- "description": "doesn't match one ASCII",
- "data": "D",
- "valid": false
- },
- {
- "description": "doesn't match two ASCII",
- "data": "DD",
- "valid": false
- }
- ]
- },
- {
- "description": "Proper UTF-16 surrogate pair handling: patternProperties",
- "comment": "Optional because .Net doesn't correctly handle 32-bit Unicode characters",
- "schema": {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "patternProperties": {
- "^🐲*$": {
- "type": "integer"
- }
- }
- },
- "tests": [
- {
- "description": "matches empty",
- "data": { "": 1 },
- "valid": true
- },
- {
- "description": "matches single",
- "data": { "🐲": 1 },
- "valid": true
- },
- {
- "description": "matches two",
- "data": { "🐲🐲": 1 },
- "valid": true
- },
- {
- "description": "doesn't match one",
- "data": { "🐲": "hello" },
- "valid": false
- },
- {
- "description": "doesn't match two",
- "data": { "🐲🐲": "hello" },
- "valid": false
- }
- ]
- }
-]