summaryrefslogtreecommitdiff
path: root/tests/strwidth.ha
diff options
context:
space:
mode:
Diffstat (limited to 'tests/strwidth.ha')
-rw-r--r--tests/strwidth.ha6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/strwidth.ha b/tests/strwidth.ha
new file mode 100644
index 0000000..e3863d6
--- /dev/null
+++ b/tests/strwidth.ha
@@ -0,0 +1,6 @@
+use tui;
+
+@test
+fn strwidth() void = {
+ assert(tui::strwidth("大ぁ😀f") == 7);
+};