summaryrefslogtreecommitdiff
path: root/tests/syscalls.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syscalls.scm')
-rw-r--r--tests/syscalls.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/syscalls.scm b/tests/syscalls.scm
index c9e011f453..340c1147de 100644
--- a/tests/syscalls.scm
+++ b/tests/syscalls.scm
@@ -583,6 +583,14 @@
(test-assert "terminal-rows"
(> (terminal-rows) 0))
+(test-equal "terminal-string-width English"
+ 5
+ (terminal-string-width "hello"))
+
+(test-equal "terminal-string-width Japanese"
+ 6
+ (terminal-string-width "今日は"))
+
(test-assert "openpty"
(let ((head inferior (openpty)))
(and (integer? head) (integer? inferior)