summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-27 13:14:21 +0200
committerLaurenz <laurmaedje@gmail.com>2023-03-27 13:14:21 +0200
commit51d972ec247e9e79eba1302d25b581446a7c961a (patch)
tree03ac2fb31a63d7e5b7eea2e0a728d0614d6cde2c /tests
parent2c7f2c005a214e8b0c1afbe9f4dab29dead8dfb0 (diff)
Fix matrix delimiters
Fixes #200.
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/matrix.pngbin7376 -> 9945 bytes
-rw-r--r--tests/typ/math/matrix.typ26
2 files changed, 25 insertions, 1 deletions
diff --git a/tests/ref/math/matrix.png b/tests/ref/math/matrix.png
index d97d6ec1..59e3a7b0 100644
--- a/tests/ref/math/matrix.png
+++ b/tests/ref/math/matrix.png
Binary files differ
diff --git a/tests/typ/math/matrix.typ b/tests/typ/math/matrix.typ
index e10b77d7..a828e4b4 100644
--- a/tests/typ/math/matrix.typ
+++ b/tests/typ/math/matrix.typ
@@ -29,6 +29,30 @@ $ mat(
) $
---
-// Test alternative delimiter.
+// Test alternative delimiter with set rule.
#set math.mat(delim: "[")
$ mat(1, 2; 3, 4) $
+
+---
+// Test alternative math delimiter directly in call.
+#set align(center)
+#grid(
+ columns: 3,
+ gutter: 10pt,
+
+ $ mat(1, 2, delim: "[") $,
+ $ mat(1, 2; delim: "[") $,
+ $ mat(delim: "[", 1, 2) $,
+
+ $ mat(1; 2; delim: "[") $,
+ $ mat(1; delim: "[", 2) $,
+ $ mat(delim: "[", 1; 2) $,
+
+ $ mat(1, 2; delim: "[", 3, 4) $,
+ $ mat(delim: "[", 1, 2; 3, 4) $,
+ $ mat(1, 2; 3, 4; delim: "[") $,
+)
+
+---
+// Error: 13-14 expected array, found content
+$ mat(1, 2; 3, 4, delim: "[") $,