mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
adding some substring-terminal-width tests
This commit is contained in:
parent
bcbed04b3b
commit
58f6509c6f
1 changed files with 3 additions and 1 deletions
|
@ -767,6 +767,8 @@ def | 6
|
||||||
(show #f (with ((ambiguous-is-wide? #t))
|
(show #f (with ((ambiguous-is-wide? #t))
|
||||||
(terminal-aware "日本語ΠΜΕ"
|
(terminal-aware "日本語ΠΜΕ"
|
||||||
(fn (col) (each " col: " col))))))
|
(fn (col) (each " col: " col))))))
|
||||||
|
(test "fo" (substring-terminal-width "foo" 1 4))
|
||||||
|
(test "o" (substring-terminal-width "foo" 2 5))
|
||||||
|
|
||||||
;; from-file
|
;; from-file
|
||||||
;; for reference, filesystem-test relies on creating files under /tmp
|
;; for reference, filesystem-test relies on creating files under /tmp
|
||||||
|
|
Loading…
Add table
Reference in a new issue