summaryrefslogtreecommitdiff
path: root/tests/typ/layout/spacing.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-13 10:39:45 +0200
committerGitHub <noreply@github.com>2024-04-13 08:39:45 +0000
commit020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch)
treec0027ad22046e2726c22298461327823d6b88d53 /tests/typ/layout/spacing.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/layout/spacing.typ')
-rw-r--r--tests/typ/layout/spacing.typ46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ
deleted file mode 100644
index faba60b4..00000000
--- a/tests/typ/layout/spacing.typ
+++ /dev/null
@@ -1,46 +0,0 @@
-// Test the `h` and `v` functions.
-
----
-// Linebreak and leading-sized weak spacing are equivalent.
-#box[A \ B] #box[A #v(0.65em, weak: true) B]
-
-// Eating up soft spacing.
-Inv#h(0pt)isible
-
-// Multiple spacings in a row.
-Add #h(10pt) #h(10pt) up
-
-// Relative to area.
-#let x = 25% - 4pt
-|#h(x)|#h(x)|#h(x)|#h(x)|
-
-// Fractional.
-| #h(1fr) | #h(2fr) | #h(1fr) |
-
----
-// Test spacing collapsing before spacing.
-#set align(right)
-A #h(0pt) B #h(0pt) \
-A B \
-A #h(-1fr) B
-
----
-// Test spacing collapsing with different font sizes.
-#grid(columns: 2)[
- #text(size: 12pt, block(below: 1em)[A])
- #text(size: 8pt, block(above: 1em)[B])
-][
- #text(size: 12pt, block(below: 1em)[A])
- #text(size: 8pt, block(above: 1.25em)[B])
-]
-
----
-// Test RTL spacing.
-#set text(dir: rtl)
-A #h(10pt) B \
-A #h(1fr) B
-
----
-// Missing spacing.
-// Error: 10-13 missing argument: amount
-Totally #h() ignored