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 | |
| parent | f3980c704544a464f9729cc8bc9f97d3a7454769 (diff) | |
Reflection for castables
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/basics/table.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/show-node.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compute/utility.typ | 4 | ||||
| -rw-r--r-- | tests/typ/layout/columns.typ | 2 | ||||
| -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 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-rect.typ | 8 |
8 files changed, 16 insertions, 16 deletions
diff --git a/tests/typ/basics/table.typ b/tests/typ/basics/table.typ index 527141c5..e806b1aa 100644 --- a/tests/typ/basics/table.typ +++ b/tests/typ/basics/table.typ @@ -18,5 +18,5 @@ #table() --- -// Error: 14-19 expected color or none or function, found string +// Error: 14-19 expected color, none, or function, found string #table(fill: "hey") diff --git a/tests/typ/compiler/show-node.typ b/tests/typ/compiler/show-node.typ index 98f36f13..f14fb002 100644 --- a/tests/typ/compiler/show-node.typ +++ b/tests/typ/compiler/show-node.typ @@ -96,7 +96,7 @@ Another text. = Heading --- -// Error: 7-10 expected selector, found color +// Error: 7-10 expected string, label, function, regular expression, or selector, found color #show red: [] --- diff --git a/tests/typ/compute/utility.typ b/tests/typ/compute/utility.typ index cfc2e8af..c99c0858 100644 --- a/tests/typ/compute/utility.typ +++ b/tests/typ/compute/utility.typ @@ -41,9 +41,9 @@ } --- -// Error: 17-18 must be positive +// Error: 17-18 number must be positive #numbering("1", 0) --- -// Error: 17-19 must be positive +// Error: 17-19 number must be positive #numbering("1", -1) diff --git a/tests/typ/layout/columns.typ b/tests/typ/layout/columns.typ index 315393a0..8702688c 100644 --- a/tests/typ/layout/columns.typ +++ b/tests/typ/layout/columns.typ @@ -101,5 +101,5 @@ This is a normal page. Very normal. --- // Test a page with zero columns. -// Error: 49-50 must be positive +// Error: 49-50 number must be positive #set page(height: auto, width: 7.05cm, columns: 0) 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") --- diff --git a/tests/typ/visualize/shape-rect.typ b/tests/typ/visualize/shape-rect.typ index 94686da2..9a115e54 100644 --- a/tests/typ/visualize/shape-rect.typ +++ b/tests/typ/visualize/shape-rect.typ @@ -57,13 +57,9 @@ Use the `*const T` pointer or the `&mut T` reference. --- -// Error: 15-38 unexpected key "cake" +// Error: 15-38 unexpected key "cake", valid keys are "top-left", "top-right", "bottom-right", "bottom-left", "left", "top", "right", "bottom", and "rest" #rect(radius: (left: 10pt, cake: 5pt)) --- -// Error: 15-21 expected stroke or none or dictionary with any of `left`, `top`, `right`, `bottom`, `x`, `y`, or `rest` as keys or auto, found array +// Error: 15-21 expected length, color, stroke, none, dictionary, or auto, found array #rect(stroke: (1, 2)) - ---- -// Error: 15-19 expected relative length or none or dictionary with any of `top-left`, `top-right`, `bottom-right`, `bottom-left`, `left`, `top`, `right`, `bottom`, or `rest` as keys, found color -#rect(radius: blue) |
