summaryrefslogtreecommitdiff
path: root/tests/typ/code/for.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-05 17:57:30 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-05 17:57:30 +0200
commit5e06941c63425ab10e08e4d533939c7309cfe6ce (patch)
tree3cce4e64aca86b782e861bb92ad663ee707e42d9 /tests/typ/code/for.typ
parent00be5d36c4f5bdc39a5f94ae1eb200499ffb8871 (diff)
Iterate over grapheme clusters instead of chars
Diffstat (limited to 'tests/typ/code/for.typ')
-rw-r--r--tests/typ/code/for.typ6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/typ/code/for.typ b/tests/typ/code/for.typ
index 63dab9b8..2569f5a7 100644
--- a/tests/typ/code/for.typ
+++ b/tests/typ/code/for.typ
@@ -58,15 +58,15 @@
#test(out, (1, 2, 3, 4, 5, "a", 6, "b", 7))
-// Chars of string.
+// Grapheme clusters of string.
#let first = true
-#let joined = for c in "abc" {
+#let joined = for c in "abc👩‍👩‍👦‍👦" {
if not first { ", " }
first = false
c
}
-#test(joined, "a, b, c")
+#test(joined, "a, b, c, 👩‍👩‍👦‍👦")
// Return value.
#test(for v in "" [], none)