diff options
Diffstat (limited to 'tests/runewidth.ha')
| -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); +}; |
