summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-26 14:39:41 +0100
committerGitHub <noreply@github.com>2024-02-26 13:39:41 +0000
commit85db05727b1cfab18480fd4296bd054cec786646 (patch)
treece2016973278ded8660b550893ad2979b5a41b10 /tests
parentca5d682edb1553cd73c581a1726537e6415fe848 (diff)
Fix fold order for vectors (#3496)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/fold-vector.pngbin0 -> 3771 bytes
-rw-r--r--tests/typ/bugs/fold-vector.typ20
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/ref/bugs/fold-vector.png b/tests/ref/bugs/fold-vector.png
new file mode 100644
index 00000000..d8503a8e
--- /dev/null
+++ b/tests/ref/bugs/fold-vector.png
Binary files differ
diff --git a/tests/typ/bugs/fold-vector.typ b/tests/typ/bugs/fold-vector.typ
new file mode 100644
index 00000000..5d57ad33
--- /dev/null
+++ b/tests/typ/bugs/fold-vector.typ
@@ -0,0 +1,20 @@
+// Test fold order of vectors.
+
+---
+#set text(features: (liga: 1))
+#set text(features: (liga: 0))
+fi
+
+---
+#underline(stroke: aqua + 4pt)[
+ #underline[Hello]
+]
+
+---
+#let c = counter("mycounter")
+#c.update(1)
+#locate(loc => [
+ #c.update(2)
+ #c.at(loc) \
+ Second: #locate(loc => c.at(loc))
+])