summaryrefslogtreecommitdiff
path: root/tests/typ/visualize
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-27 11:54:30 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-27 11:54:30 +0100
commita8fd64f9289b92614b9e6c16e909ec0c45429027 (patch)
tree76ce8797a6fe9c8b8c0bb1783910ba4b9e22da8b /tests/typ/visualize
parent33585d9a3fbab8a76d3fd8e9c2560f929202a518 (diff)
Hashtags everywhere!
Diffstat (limited to 'tests/typ/visualize')
-rw-r--r--tests/typ/visualize/line.typ8
-rw-r--r--tests/typ/visualize/shape-fill-stroke.typ2
-rw-r--r--tests/typ/visualize/shape-rect.typ12
3 files changed, 10 insertions, 12 deletions
diff --git a/tests/typ/visualize/line.typ b/tests/typ/visualize/line.typ
index 9cc9b8cc..2085daa1 100644
--- a/tests/typ/visualize/line.typ
+++ b/tests/typ/visualize/line.typ
@@ -6,10 +6,10 @@
---
// Test the `end` argument.
-{
- line(end: (10pt, 0pt))
- line(start: (0pt, 10pt), end: (0pt, 0pt))
- line(end: (15pt, 15pt))
+#{
+ line(end: (10pt, 0pt))
+ line(start: (0pt, 10pt), end: (0pt, 0pt))
+ line(end: (15pt, 15pt))
}
#v(.5cm)
diff --git a/tests/typ/visualize/shape-fill-stroke.typ b/tests/typ/visualize/shape-fill-stroke.typ
index d14d0981..8820a9fd 100644
--- a/tests/typ/visualize/shape-fill-stroke.typ
+++ b/tests/typ/visualize/shape-fill-stroke.typ
@@ -16,7 +16,7 @@
variant(fill: forest, stroke: black + 2pt),
variant(fill: forest, stroke: conifer + 2pt),
) {
- (align(horizon)[{i + 1}.], item, [])
+ (align(horizon)[#{i + 1}.], item, [])
}
#grid(
diff --git a/tests/typ/visualize/shape-rect.typ b/tests/typ/visualize/shape-rect.typ
index c8518bbd..ff80dfb9 100644
--- a/tests/typ/visualize/shape-rect.typ
+++ b/tests/typ/visualize/shape-rect.typ
@@ -24,9 +24,9 @@
#rect(height: 1cm, width: 100%, fill: rgb("734ced"))[Topleft]
// These are inline with text.
-\{#rect(width: 0.5in, height: 7pt, fill: rgb("d6cd67"))
- #rect(width: 0.5in, height: 7pt, fill: rgb("edd466"))
- #rect(width: 0.5in, height: 7pt, fill: rgb("e3be62"))\}
+{#rect(width: 0.5in, height: 7pt, fill: rgb("d6cd67"))
+ #rect(width: 0.5in, height: 7pt, fill: rgb("edd466"))
+ #rect(width: 0.5in, height: 7pt, fill: rgb("e3be62"))}
// Rounded corners.
#rect(width: 2cm, radius: 60%)
@@ -39,10 +39,8 @@
))
// Different strokes.
-[
- #set rect(stroke: (right: red))
- #rect(width: 100%, fill: lime, stroke: (x: 5pt, y: 1pt))
-]
+#set rect(stroke: (right: red))
+#rect(width: 100%, fill: lime, stroke: (x: 5pt, y: 1pt))
---
// Error: 15-38 unexpected key "cake", valid keys are "top-left", "top-right", "bottom-right", "bottom-left", "left", "top", "right", "bottom", and "rest"