summaryrefslogtreecommitdiff
path: root/tests/typ/insert
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-29 13:45:59 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-29 13:49:50 +0200
commit32a6b673bc4b73ade5863b0166c0779597cede5c (patch)
tree7d32aa06c63052a759f7fc4d89bb551faeb258d0 /tests/typ/insert
parentb89cd128ae118571efe8a5a5b40b9365e3007746 (diff)
Make use of wide calls
Diffstat (limited to 'tests/typ/insert')
-rw-r--r--tests/typ/insert/circle.typ6
-rw-r--r--tests/typ/insert/rect.typ2
-rw-r--r--tests/typ/insert/square.typ11
3 files changed, 8 insertions, 11 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ
index d2fa928e..7722d006 100644
--- a/tests/typ/insert/circle.typ
+++ b/tests/typ/insert/circle.typ
@@ -8,7 +8,7 @@ Auto-sized circle. \
Center-aligned rect in auto-sized circle.
#circle(fill: forest)[
- #align(center, center)
+ #align!(center, center)
#rect(fill: conifer, pad(5pt)[But, soft!])
]
@@ -23,8 +23,8 @@ Expanded by height.
---
// Test relative sizing.
#rect(width: 100%, height: 50pt, fill: #aaa)[
- #align(center, center)
- #font(color: #fff)
+ #align!(center, center)
+ #font!(color: #fff)
#circle(radius: 10pt, fill: eastern)[A]
#circle(height: 60%, fill: eastern)[B]
#circle(width: 20% + 20pt, fill: eastern)[C]
diff --git a/tests/typ/insert/rect.typ b/tests/typ/insert/rect.typ
index f450064a..93df071b 100644
--- a/tests/typ/insert/rect.typ
+++ b/tests/typ/insert/rect.typ
@@ -3,7 +3,7 @@
---
// Test the `rect` function.
-#page(width: 150pt)
+#page!(width: 150pt)
// Fit to text.
#rect(fill: conifer)[Textbox]
diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ
index 649d31c0..f7e1e09e 100644
--- a/tests/typ/insert/square.typ
+++ b/tests/typ/insert/square.typ
@@ -3,11 +3,8 @@
---
Auto-sized square. \
#square(fill: eastern)[
- #align(center)
- #pad(5pt)[
- #font(color: #fff, weight: bold)
- Typst
- ]
+ #align!(center)
+ #pad(5pt, font(color: #fff, weight: bold)[Typst])
]
---
@@ -18,14 +15,14 @@ Auto-sized square. \
---
// Test height overflow.
-#page(width: 75pt, height: 100pt)
+#page!(width: 75pt, height: 100pt)
#square(fill: conifer)[
But, soft! what light through yonder window breaks?
]
---
// Test width overflow.
-#page(width: 100pt, height: 75pt)
+#page!(width: 100pt, height: 75pt)
#square(fill: conifer)[
But, soft! what light through yonder window breaks?
]