summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/tests.rs4
-rw-r--r--tests/typ/basics/table.typ2
-rw-r--r--tests/typ/compiler/show-node.typ2
-rw-r--r--tests/typ/compute/utility.typ4
-rw-r--r--tests/typ/layout/columns.typ2
-rw-r--r--tests/typ/text/edge.typ4
-rw-r--r--tests/typ/text/features.typ8
-rw-r--r--tests/typ/text/font.typ2
-rw-r--r--tests/typ/visualize/shape-rect.typ8
9 files changed, 18 insertions, 18 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index 06162df0..7c1e39b7 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -14,8 +14,8 @@ use tiny_skia as sk;
use typst::diag::{bail, FileError, FileResult, SourceResult};
use typst::doc::{Document, Element, Frame, Meta};
use typst::font::{Font, FontBook};
-use typst::geom::{Abs, RgbaColor, Sides};
-use typst::model::{func, Library, Smart, Value};
+use typst::geom::{Abs, RgbaColor, Sides, Smart};
+use typst::model::{func, Library, Value};
use typst::syntax::{Source, SourceId, SyntaxNode};
use typst::util::{Buffer, PathExt};
use typst::World;
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)