summaryrefslogtreecommitdiff
path: root/tests/typ/insert
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/insert')
-rw-r--r--tests/typ/insert/circle.typ6
-rw-r--r--tests/typ/insert/image.typ14
-rw-r--r--tests/typ/insert/square.typ11
3 files changed, 16 insertions, 15 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ
index 38fce645..8d76f4ef 100644
--- a/tests/typ/insert/circle.typ
+++ b/tests/typ/insert/circle.typ
@@ -39,9 +39,9 @@ Expanded by height.
---
// Radius wins over width and height.
// Error: 23-34 unexpected argument
-// Error: 36-49 unexpected argument
#circle(radius: 10pt, width: 50pt, height: 100pt, fill: eastern)
+---
// Width wins over height.
-// Error: 22-34 unexpected argument
-#circle(width: 20pt, height: 50pt, fill: eastern)
+// Error: 9-21 unexpected argument
+#circle(height: 50pt, width: 20pt, fill: eastern)
diff --git a/tests/typ/insert/image.typ b/tests/typ/insert/image.typ
index 35087c2e..84069949 100644
--- a/tests/typ/insert/image.typ
+++ b/tests/typ/insert/image.typ
@@ -10,12 +10,6 @@
// Load an RGB JPEG image.
#image("../../res/tiger.jpg")
-// Error: 8-29 file not found
-#image("path/does/not/exist")
-
-// Error: 8-21 failed to load image
-#image("./image.typ")
-
---
// Test configuring the size and fitting behaviour of images.
@@ -36,3 +30,11 @@
// Make sure the bounding-box of the image is correct.
#align(bottom, right, image("../../res/tiger.jpg", width: 60pt))
+
+---
+// Error: 8-29 file not found
+#image("path/does/not/exist")
+
+---
+// Error: 8-21 failed to load image
+#image("./image.typ")
diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ
index d546773f..7d65b529 100644
--- a/tests/typ/insert/square.typ
+++ b/tests/typ/insert/square.typ
@@ -10,12 +10,6 @@ Auto-sized square. \
]
---
-// Length wins over width and height.
-// Error: 09-20 unexpected argument
-// Error: 22-34 unexpected argument
-#square(width: 10cm, height: 20cm, length: 1cm, fill: rgb("eb5278"))
-
----
// Test height overflow.
#page!(width: 75pt, height: 100pt)
#square(fill: conifer)[
@@ -28,3 +22,8 @@ Auto-sized square. \
#square(fill: conifer)[
But, soft! what light through yonder window breaks?
]
+
+---
+// Length wins over width and height.
+// Error: 09-20 unexpected argument
+#square(width: 10cm, height: 20cm, length: 1cm, fill: rgb("eb5278"))