diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/func-font-error.typ | 6 | ||||
| -rw-r--r-- | tests/typ/func-font-fallback.typ | 2 |
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. 🚀 |
