summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/math/cases.typ4
-rw-r--r--tests/suite/math/mat.typ11
-rw-r--r--tests/suite/math/vec.typ4
3 files changed, 13 insertions, 6 deletions
diff --git a/tests/suite/math/cases.typ b/tests/suite/math/cases.typ
index 1c7b4a6b..306c1ae8 100644
--- a/tests/suite/math/cases.typ
+++ b/tests/suite/math/cases.typ
@@ -17,6 +17,6 @@ $ x = cases(1, 2) $
$ cases(a, b, c) $
--- math-cases-linebreaks ---
-// Currently linebreaks are equivalent to commas, though this behaviour may
-// change in the future.
+// Warning: 40-49 linebreaks are ignored in branches
+// Hint: 40-49 use commas instead to separate each line
$ cases(a, b, c) cases(reverse: #true, a \ b \ c) $
diff --git a/tests/suite/math/mat.typ b/tests/suite/math/mat.typ
index b7d6a687..80f19060 100644
--- a/tests/suite/math/mat.typ
+++ b/tests/suite/math/mat.typ
@@ -256,10 +256,17 @@ $ mat(delim: #(none, "["), 1, 2; 3, 4) $
$ mat(delim: #(sym.angle.r, sym.bracket.double.r), 1, 2; 3, 4) $
--- math-mat-linebreaks ---
-// Unlike cases and vectors, linebreaks are discarded in matrices. This
-// behaviour may change in the future.
+// Warning: 20-29 linebreaks are ignored in cells
+// Hint: 20-29 use commas instead to separate each line
$ mat(a; b; c) mat(a \ b \ c) $
+--- math-mat-vec-cases-unity ---
+// Test that matrices, vectors, and cases are all laid out the same.
+$ mat(z_(n_p); a^2)
+ vec(z_(n_p), a^2)
+ cases(reverse: #true, delim: \(, z_(n_p), a^2)
+ cases(delim: \(, z_(n_p), a^2) $
+
--- issue-1617-mat-align ---
#set page(width: auto)
$ mat(a, b; c, d) mat(x; y) $
diff --git a/tests/suite/math/vec.typ b/tests/suite/math/vec.typ
index 5de7eca9..e5ee409e 100644
--- a/tests/suite/math/vec.typ
+++ b/tests/suite/math/vec.typ
@@ -51,6 +51,6 @@ $ vec(1, 2) $
#set math.vec(delim: (none, "%"))
--- math-vec-linebreaks ---
-// Currently linebreaks are equivalent to commas, though this behaviour may
-// change in the future.
+// Warning: 20-29 linebreaks are ignored in elements
+// Hint: 20-29 use commas instead to separate each line
$ vec(a, b, c) vec(a \ b \ c) $