summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compiler/construct.typ6
-rw-r--r--tests/typ/layout/par.typ10
-rw-r--r--tests/typ/layout/repeat.typ2
-rw-r--r--tests/typ/layout/spacing.typ2
-rw-r--r--tests/typ/math/style.typ2
-rw-r--r--tests/typ/text/microtype.typ2
-rw-r--r--tests/typ/visualize/line.typ2
7 files changed, 9 insertions, 17 deletions
diff --git a/tests/typ/compiler/construct.typ b/tests/typ/compiler/construct.typ
index f535184c..df5368b7 100644
--- a/tests/typ/compiler/construct.typ
+++ b/tests/typ/compiler/construct.typ
@@ -10,9 +10,9 @@
// Ensure that constructor styles win, but not over outer styles.
// The outer paragraph should be right-aligned,
// but the B should be center-aligned.
-#set par(align: center)
-#par(align: right)[
- A #rect(width: 2cm, fill: conifer, inset: 4pt)[B]
+#set list(label: [>])
+#list(label: [--])[
+ #rect(width: 2cm, fill: conifer, inset: 4pt, list[A])
]
---
diff --git a/tests/typ/layout/par.typ b/tests/typ/layout/par.typ
index 558059e9..aabe63ef 100644
--- a/tests/typ/layout/par.typ
+++ b/tests/typ/layout/par.typ
@@ -2,7 +2,7 @@
---
// Test ragged-left.
-#set par(align: right)
+#set align(right)
To the right! Where the sunlight peeks behind the mountain.
---
@@ -35,11 +35,3 @@ fn main() {}
- List
Paragraph
-
----
-// Error: 17-20 must be horizontal
-#set par(align: top)
-
----
-// Error: 17-33 expected alignment, found 2d alignment
-#set par(align: horizon + center)
diff --git a/tests/typ/layout/repeat.typ b/tests/typ/layout/repeat.typ
index 13e99b51..3b5459c9 100644
--- a/tests/typ/layout/repeat.typ
+++ b/tests/typ/layout/repeat.typ
@@ -32,7 +32,7 @@ A#repeat(rect(width: 2.5em, height: 1em))B
// Test single repeat in both directions.
A#repeat(rect(width: 6em, height: 0.7em))B
-#set par(align: center)
+#set align(center)
A#repeat(rect(width: 6em, height: 0.7em))B
#set text(dir: rtl)
diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ
index eb0bd39e..3cb1a20c 100644
--- a/tests/typ/layout/spacing.typ
+++ b/tests/typ/layout/spacing.typ
@@ -19,7 +19,7 @@ Add #h(10pt) #h(10pt) up
---
// Test spacing collapsing before spacing.
-#set par(align: right)
+#set align(right)
A #h(0pt) B #h(0pt) \
A B \
A #h(-1fr) B
diff --git a/tests/typ/math/style.typ b/tests/typ/math/style.typ
index c9238a9a..8df216ef 100644
--- a/tests/typ/math/style.typ
+++ b/tests/typ/math/style.typ
@@ -11,5 +11,5 @@
}
#set page(width: auto)
-#set par(align: center)
+#set align(center)
#table(columns: 1 + modifiers.len(), ..cells)
diff --git a/tests/typ/text/microtype.typ b/tests/typ/text/microtype.typ
index 57f9b2f2..c1f0d344 100644
--- a/tests/typ/text/microtype.typ
+++ b/tests/typ/text/microtype.typ
@@ -18,6 +18,6 @@
---
// Test that lone punctuation doesn't overhang into the margin.
#set page(margin: 0pt)
-#set par(align: end)
+#set align(end)
#set text(dir: rtl)
:
diff --git a/tests/typ/visualize/line.typ b/tests/typ/visualize/line.typ
index 2cb2fc9c..92490ef8 100644
--- a/tests/typ/visualize/line.typ
+++ b/tests/typ/visualize/line.typ
@@ -22,7 +22,7 @@
#let star(width, ..args) = box(width: width, height: width)[
#set text(spacing: 0%)
#set line(..args)
- #set par(align: left)
+ #set align(left)
#line(length: +30%, origin: (09.0%, 02%))
#line(length: +30%, origin: (38.7%, 02%), angle: -72deg)
#line(length: +30%, origin: (57.5%, 02%), angle: 252deg)