mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Use a multi-stage lookup table for grapheme segmentation
This commit is contained in:
@@ -638,6 +638,7 @@ class TestDataTypes(BaseTest):
|
||||
|
||||
def test_split_into_graphemes(self):
|
||||
self.assertEqual(char_props_for('\ue000')['category'], 'Co')
|
||||
self.ae(split_into_graphemes('ab'), ['a', 'b'])
|
||||
for i, test in enumerate(json.loads(read_kitty_resource('GraphemeBreakTest.json', __name__.rpartition('.')[0]))):
|
||||
expected = test['data']
|
||||
actual = split_into_graphemes(''.join(expected))
|
||||
|
||||
Reference in New Issue
Block a user