summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-12-21 00:40:09 +0100
committerLaurenz <laurmaedje@gmail.com>2020-12-21 00:40:09 +0100
commite59de77f96d43fa675c5c733ccf39ec2c22e949e (patch)
tree84d746c1d1ad863b8c8e2e9fda86ed842634a838 /tests/typ
parent2b660968aa7e1e8efb7c396e17066a1a98c8c10e (diff)
Allow only a few predefined font classes in [font] 🚧
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/func-font-error.typ6
-rw-r--r--tests/typ/func-font-fallback.typ2
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/typ/func-font-error.typ b/tests/typ/func-font-error.typ
new file mode 100644
index 00000000..34ff5837
--- /dev/null
+++ b/tests/typ/func-font-error.typ
@@ -0,0 +1,6 @@
+// Test error cases of the `font` function.
+
+[font: something="invalid"]
+
+// compare-ref: false
+// error: 3:8-3:27 unexpected argument
diff --git a/tests/typ/func-font-fallback.typ b/tests/typ/func-font-fallback.typ
index 587baed7..b6509e62 100644
--- a/tests/typ/func-font-fallback.typ
+++ b/tests/typ/func-font-fallback.typ
@@ -11,7 +11,7 @@ Emoji: 🏀
[font: math][Math: ∫ α + β ➗ 3]
// Class redefinition.
-[font: sans-serif=("Noto Emoji",)]
+[font: sans-serif="Noto Emoji"]
[font: sans-serif=("Archivo", sans-serif)]
New sans-serif. 🚀