summaryrefslogtreecommitdiff
path: root/tests/typ/math/linebreak.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/math/linebreak.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/math/linebreak.typ')
-rw-r--r--tests/typ/math/linebreak.typ50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/typ/math/linebreak.typ b/tests/typ/math/linebreak.typ
deleted file mode 100644
index 88ce69d2..00000000
--- a/tests/typ/math/linebreak.typ
+++ /dev/null
@@ -1,50 +0,0 @@
-// Test inline equation line breaking.
-
----
-// Basic breaking after binop, rel
-#let hrule(x) = box(line(length: x))
-#hrule(45pt)$e^(pi i)+1 = 0$\
-#hrule(55pt)$e^(pi i)+1 = 0$\
-#hrule(70pt)$e^(pi i)+1 = 0$
-
----
-// LR groups prevent linbreaking.
-#let hrule(x) = box(line(length: x))
-#hrule(76pt)$a+b$\
-#hrule(74pt)$(a+b)$\
-#hrule(74pt)$paren.l a+b paren.r$
-
----
-// Multiline yet inline does not linebreak
-#let hrule(x) = box(line(length: x))
-#hrule(80pt)$a + b \ c + d$\
-
----
-// A single linebreak at the end still counts as one line.
-#let hrule(x) = box(line(length: x))
-#hrule(60pt)$e^(pi i)+1 = 0\ $
-
----
-// Inline, in a box, doesn't linebreak.
-#let hrule(x) = box(line(length: x))
-#hrule(80pt)#box($a+b$)
-
----
-// A relation followed by a relation doesn't linebreak
-#let hrule(x) = box(line(length: x))
-#hrule(70pt)$a < = b$\
-#hrule(74pt)$a < = b$
-
----
-// Page breaks can happen after a relation even if there is no
-// explicit space.
-#let hrule(x) = box(line(length: x))
-#hrule(90pt)$<;$\
-#hrule(95pt)$<;$\
-#hrule(90pt)$<)$\
-#hrule(95pt)$<)$
-
----
-// Verify empty rows are handled ok.
-$ $\
-Nothing: $ $, just empty.