Commit Graph

8 Commits

Author SHA1 Message Date
Meghana Gupta
9112760248 Disable failing test on arm64 2024-04-09 11:53:57 -07:00
Alejandro Alonso
4aa7a8bd3f Change availability guarding test 2024-03-19 15:42:42 -07:00
Alexis Laferrière
f1352f0919 tests: disable stdlib/StringGraphemeBreaking.swift on arm64e 2024-03-13 10:34:52 -07:00
Alejandro Alonso
f16f0c3c23 Update the stdlib to use Unicode 15 data 2023-03-29 10:18:16 -07:00
Karoy Lorentey
a3e517ed36 [stdlib] String: Fix forward implementation of grapheme breaking rule 11
Rule GB11 in Unicode Annex 29 is:

GB11: Extended_Pictographic Extend* ZWJ × Extended_Pictographic

However, our forward grapheme breaking state machine implements it as:

GB11: Extended_Pictographic Extend* ZWJ+ × Extended_Pictographic

We implement the correct rules when going backward, which can cause String values to have different counts whether we’re going forward or back.

The rule as implemented would be fine (Unicode doesn’t care much about the placement of grapheme breaks in invalid sequences), but the directional inconsistency messes with String’s Collection conformance.

rdar://104279671
2023-01-15 16:12:38 -08:00
Karoy Lorentey
4d9edad297 [test] Improve grapheme breaking tests
Instead of just checking the number of breaks in each test case,
expose and check the actual positions of those breaks, too.
2022-12-29 17:56:45 -08:00
Karoy Lorentey
3f2550feb4 [test] stdlib/StringGraphemeBreaking: Add backwards checks 2022-04-05 21:42:17 -07:00
Alejandro Alonso
657c17fa39 Setup grapheme breaking tests 2022-02-15 17:16:36 -08:00