Skip to content

Commit fd0df6c

Browse files
committed
Update unicode tests per PR feedback
1 parent 6009822 commit fd0df6c

File tree

1 file changed

+19
-29
lines changed

1 file changed

+19
-29
lines changed

tests/draft6/const.json

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -340,53 +340,43 @@
340340
]
341341
},
342342
{
343-
"description": "graphemes evaluated codepoint-for-codepoint",
344-
"schema": { "const": "μ" },
343+
"description": "characters with the same visual representation but different codepoint",
344+
"schema": {
345+
"const": "μ",
346+
"$comment": "U+03BC"
347+
},
345348
"tests": [
346349
{
347-
"description": "grapheme is equal for codepoint",
350+
"description": "character uses the same codepoint",
348351
"data": "μ",
352+
"comment": "U+03BC",
349353
"valid": true
350354
},
351355
{
352-
"description": "grapheme is not equal for codepoint",
356+
"description": "character looks the same but uses a different codepoint",
353357
"data": "µ",
354-
"valid": false
355-
},
356-
{
357-
"description": "codepoint is equal for grapheme",
358-
"data": "\u03bc",
359-
"valid": true
360-
},
361-
{
362-
"description": "codepoint is not equal for grapheme",
363-
"data": "\u00b5",
358+
"comment": "U+00B5",
364359
"valid": false
365360
}
366361
]
367362
},
368363
{
369-
"description": "combining marks evaluated codepoint-for-codepoint",
370-
"schema": { "const": "a\u0308" },
364+
"description": "characters with the same visual representation, but different number of codepoints",
365+
"schema": {
366+
"const": "ä",
367+
"$comment": "U+00E4"
368+
},
371369
"tests": [
372370
{
373-
"description": "grapheme is equal codepoint-for-codepoint",
374-
"data": "",
375-
"valid": true
376-
},
377-
{
378-
"description": "grapheme is not equal codepoint-for-codepoint",
371+
"description": "character uses the same codepoint",
379372
"data": "ä",
380-
"valid": false
381-
},
382-
{
383-
"description": "codepoints are equal codepoint-for-codepoint",
384-
"data": "\u0061\u0308",
373+
"comment": "U+00E4",
385374
"valid": true
386375
},
387376
{
388-
"description": "codepoints are not equal codepoint-for-codepoint",
389-
"data": "\u00e4",
377+
"description": "character looks the same but uses combining marks",
378+
"data": "",
379+
"comment": "a, U+0308",
390380
"valid": false
391381
}
392382
]

0 commit comments

Comments
 (0)