|
340 | 340 | ] |
341 | 341 | }, |
342 | 342 | { |
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 | + }, |
345 | 348 | "tests": [ |
346 | 349 | { |
347 | | - "description": "grapheme is equal for codepoint", |
| 350 | + "description": "character uses the same codepoint", |
348 | 351 | "data": "μ", |
| 352 | + "comment": "U+03BC", |
349 | 353 | "valid": true |
350 | 354 | }, |
351 | 355 | { |
352 | | - "description": "grapheme is not equal for codepoint", |
| 356 | + "description": "character looks the same but uses a different codepoint", |
353 | 357 | "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", |
364 | 359 | "valid": false |
365 | 360 | } |
366 | 361 | ] |
367 | 362 | }, |
368 | 363 | { |
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 | + }, |
371 | 369 | "tests": [ |
372 | 370 | { |
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", |
379 | 372 | "data": "ä", |
380 | | - "valid": false |
381 | | - }, |
382 | | - { |
383 | | - "description": "codepoints are equal codepoint-for-codepoint", |
384 | | - "data": "\u0061\u0308", |
| 373 | + "comment": "U+00E4", |
385 | 374 | "valid": true |
386 | 375 | }, |
387 | 376 | { |
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", |
390 | 380 | "valid": false |
391 | 381 | } |
392 | 382 | ] |
|
0 commit comments