summaryrefslogtreecommitdiff
path: root/tests
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
parent3a4c5ae4b96ff5c2cd17a2f41a67398f21da0373 (diff)
User-defined symbols
Diffstat (limited to 'tests')
-rw-r--r--tests/fonts/NotoSansSymbols2-Regular.ttfbin0 -> 656828 bytes
-rw-r--r--tests/ref/compute/construct.pngbin155 -> 1308 bytes
-rw-r--r--tests/typ/compute/construct.typ17
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/fonts/NotoSansSymbols2-Regular.ttf b/tests/fonts/NotoSansSymbols2-Regular.ttf
new file mode 100644
index 00000000..429a51d5
--- /dev/null
+++ b/tests/fonts/NotoSansSymbols2-Regular.ttf
Binary files differ
diff --git a/tests/ref/compute/construct.png b/tests/ref/compute/construct.png
index 600e6174..6e637f34 100644
--- a/tests/ref/compute/construct.png
+++ b/tests/ref/compute/construct.png
Binary files differ
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")