diff options
| author | ruki <[email protected]> | 2026-01-21 00:40:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-21 00:40:01 +0800 |
| commit | b5a506803e4f3c8b11858be2a57c509d479683e1 (patch) | |
| tree | 9e5c628fdd225958c8fa0cc13bb14011a8bafeb1 /tests/modules/utf8/test.lua | |
| parent | 4c08bae6d49e37102c0b889ff7afcc9f319435db (diff) | |
mark wcswidth deprecated
Diffstat (limited to 'tests/modules/utf8/test.lua')
| -rw-r--r-- | tests/modules/utf8/test.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/modules/utf8/test.lua b/tests/modules/utf8/test.lua index df09604a4..bab3ce896 100644 --- a/tests/modules/utf8/test.lua +++ b/tests/modules/utf8/test.lua @@ -159,18 +159,4 @@ function test_width(t) t:are_equal(utf8.width("A\tB"), 6) -- 1 + 4 + 1 end -function test_wcwidth(t) - -- char/codepoint width - t:are_equal(utf8.wcwidth(string.byte("A")), 1) - t:are_equal(utf8.wcwidth(utf8.codepoint("€")), 1) - t:are_equal(utf8.wcwidth(utf8.codepoint("你")), 2) -end -function test_wcswidth(t) - -- string width - t:are_equal(utf8.wcswidth("A"), 1) - t:are_equal(utf8.wcswidth("ABC"), 3) - t:are_equal(utf8.wcswidth("你好"), 4) - t:are_equal(utf8.wcswidth("A你好"), 5) - t:are_equal(utf8.wcswidth("A\tB"), 6) -end |
