diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2025-03-20 11:24:13 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2025-03-20 11:24:15 +0100 |
| commit | 5d8a0a6ce5dbb12963323f97220767fcf7c08b5c (patch) | |
| tree | 897a559601beb04a6f9f406492b7650882ae75f7 /tests | |
| parent | 4a9e36481fc682d9e21bedef81e06a8335246de3 (diff) | |
| download | hare-tui-5d8a0a6ce5dbb12963323f97220767fcf7c08b5c.tar.gz | |
Add initial wide-character support
Adds support for the emoticon, hiragana, katakana and CJK unicode
blocks.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/runewidth.ha | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/runewidth.ha b/tests/runewidth.ha new file mode 100644 index 0000000..5e570a5 --- /dev/null +++ b/tests/runewidth.ha @@ -0,0 +1,9 @@ +use tui; + +@test +fn runewidth() void = { + assert(tui::runewidth('f') == 1); + assert(tui::runewidth('大') == 2); + assert(tui::runewidth('ぁ') == 2); + assert(tui::runewidth('😀') == 2); +}; |
