diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-15 22:51:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-15 23:11:20 +0100 |
| commit | b6202b646a0d5ecced301d9bac8bfcaf977d7ee4 (patch) | |
| tree | 7d42cb50f9e66153e7e8b2217009684e25f54f42 /tests/typ/text | |
| parent | f3980c704544a464f9729cc8bc9f97d3a7454769 (diff) | |
Reflection for castables
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/edge.typ | 4 | ||||
| -rw-r--r-- | tests/typ/text/features.typ | 8 | ||||
| -rw-r--r-- | tests/typ/text/font.typ | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/tests/typ/text/edge.typ b/tests/typ/text/edge.typ index c3c60b28..26be4aeb 100644 --- a/tests/typ/text/edge.typ +++ b/tests/typ/text/edge.typ @@ -17,9 +17,9 @@ #try(1pt + 0.3em, -0.15em) --- -// Error: 21-23 expected string or length, found array +// Error: 21-23 expected length, "ascender", "cap-height", "x-height", "baseline", or "descender", found array #set text(top-edge: ()) --- -// Error: 24-26 unknown font metric +// Error: 24-26 expected length, "ascender", "cap-height", "x-height", "baseline", or "descender" #set text(bottom-edge: "") diff --git a/tests/typ/text/features.typ b/tests/typ/text/features.typ index 070fdcdf..cae240f3 100644 --- a/tests/typ/text/features.typ +++ b/tests/typ/text/features.typ @@ -55,9 +55,13 @@ fi vs. #text(features: (liga: 0))[No fi] #set text(stylistic-set: 25) --- -// Error: 24-25 expected string or auto, found integer +// Error: 24-25 expected "lining", "old-style", or auto, found integer #set text(number-type: 2) --- -// Error: 21-26 expected array of strings or dictionary mapping tags to integers, found boolean +// Error: 21-26 expected array or dictionary, found boolean #set text(features: false) + +--- +// Error: 21-35 expected string, found boolean +#set text(features: ("tag", false)) diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index e57fedbd..170703c7 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -48,7 +48,7 @@ Emoji: 🐪, 🌋, 🏞 #set text(false) --- -// Error: 18-24 expected "normal", "italic" or "oblique" +// Error: 18-24 expected "normal", "italic", or "oblique" #set text(style: "bold", weight: "thin") --- |
