summaryrefslogtreecommitdiff
path: root/tests/typ/compute/construct.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-30 19:45:10 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-30 19:45:10 +0100
commit1ea0a933254d866e00acb9034bba39a5f4790682 (patch)
treed224b24f44d43795fabf2a35d0bb161b9d0d0938 /tests/typ/compute/construct.typ
parent3a4c5ae4b96ff5c2cd17a2f41a67398f21da0373 (diff)
User-defined symbols
Diffstat (limited to 'tests/typ/compute/construct.typ')
-rw-r--r--tests/typ/compute/construct.typ17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/typ/compute/construct.typ b/tests/typ/compute/construct.typ
index ccb7bd2e..50fa4e3e 100644
--- a/tests/typ/compute/construct.typ
+++ b/tests/typ/compute/construct.typ
@@ -42,6 +42,23 @@
#rgb(10%, 20%, 30%, false)
---
+// Ref: true
+#let envelope = symbol(
+ "🖂",
+ ("stamped", "🖃"),
+ ("stamped.pen", "🖆"),
+ ("lightning", "🖄"),
+ ("fly", "🖅"),
+)
+
+#envelope
+#envelope.stamped
+#envelope.pen
+#envelope.stamped.pen
+#envelope.lightning
+#envelope.fly
+
+---
// Test conversion to string.
#test(str(123), "123")
#test(str(50.14), "50.14")