summaryrefslogtreecommitdiff
path: root/lib/std/test/fmt.myr
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2017-10-29 00:51:25 -0400
committerOri Bernstein <ori@eigenstate.org>2017-10-29 19:46:03 -0700
commitdde43f18e3b9f699c188c74064cf785917b41e22 (patch)
tree7f3c9863634a948a3a5047eb7e5deea6331d48a7 /lib/std/test/fmt.myr
parent4ecfdbc4819481740991e7f477a32ed7396c7125 (diff)
downloadmc-dde43f18e3b9f699c188c74064cf785917b41e22.tar.gz
Implement graphemewidth
Diffstat (limited to 'lib/std/test/fmt.myr')
-rw-r--r--lib/std/test/fmt.myr4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index 5d0cfa8..c1a17ac 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -56,6 +56,10 @@ const builtins = {
check("\\n\\r\\xff", "{e}", "\n\r\xff")
check("{}barbaz", "{{}}bar{}", "baz")
check("{barbaz}", "{{bar{}}}", "baz")
+ check(" Tlön", "{w=10}", "Tlön")
+ check(" háček", "{w=10}", "háček")
+ check("_____即是多多即", "{w=15,p=_}", "即是多多即")
+ check(" τῶν ῾Ελλήνων", "{w=15}", "τῶν ῾Ελλήνων")
check("abcd", "{}", "abcd")
check("123", "{}", 123)
check("7b", "{x}", 123)