diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-09-27 07:40:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 23:40:46 +0000 |
commit | a9287dd882e082a17fc7dcf004d3f991ed29001b (patch) | |
tree | eafd77075b02bd7aef20cdceb6097636edb97b12 /test/unit/mbyte_spec.lua | |
parent | 98d1c0ebef77ba2d96f1203ad504b8ae08ebdab0 (diff) | |
download | rneovim-a9287dd882e082a17fc7dcf004d3f991ed29001b.tar.gz rneovim-a9287dd882e082a17fc7dcf004d3f991ed29001b.tar.bz2 rneovim-a9287dd882e082a17fc7dcf004d3f991ed29001b.zip |
fix(mbyte): check for utf8proc_map() failure (#30531)
Diffstat (limited to 'test/unit/mbyte_spec.lua')
-rw-r--r-- | test/unit/mbyte_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/mbyte_spec.lua b/test/unit/mbyte_spec.lua index 62390c8794..e0c0244989 100644 --- a/test/unit/mbyte_spec.lua +++ b/test/unit/mbyte_spec.lua @@ -347,4 +347,10 @@ describe('mbyte', function() check('L̓̉̑̒̌̚ơ̗̌̒̄̀ŕ̈̈̎̐̕è̇̅̄̄̐m̖̟̟̅̄̚', {'L̓̉̑̒̌̚', 'ơ̗̌̒̄̀', 'ŕ̈̈̎̐̕', 'è̇̅̄̄̐', 'm̖̟̟̅̄̚'}) -- stylua: ignore end end) + + describe('utf_fold', function() + itp('does not crash with surrogates #30527', function() + eq(0xDDFB, lib.utf_fold(0xDDFB)) + end) + end) end) |