Skip to content

Commit 18cbd84

Browse files
committed
test(draft2020-12): add combining character maxLength edge case
1 parent 4253477 commit 18cbd84

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/draft2020-12/maxLength.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,25 @@
5151
"valid": false
5252
}
5353
]
54+
},
55+
{
56+
"description": "maxLength with combining character sequences",
57+
"schema": {
58+
"$schema": "https://json-schema.org/draft/2020-12/schema",
59+
"maxLength": 1
60+
},
61+
"tests": [
62+
{
63+
"description": "latin small letter e with combining acute accent",
64+
"data": "e\u0301",
65+
"valid": false
66+
},
67+
{
68+
"description": "single basic character",
69+
"data": "a",
70+
"valid": true
71+
}
72+
]
5473
}
74+
5575
]

0 commit comments

Comments
 (0)