summaryrefslogtreecommitdiff
path: root/tests/typ/math
diff options
context:
space:
mode:
authorAlex Saveau <saveau.alexandre@gmail.com>2023-04-19 10:08:59 -0700
committerGitHub <noreply@github.com>2023-04-19 19:08:59 +0200
commitb285bea41de7bea0ea33878d812fd4a046913128 (patch)
tree264023ec2642df51ebf87e2eb638d46cd3e63b58 /tests/typ/math
parentf08ae95b9d8be5165f9c8cac4c755d0510c3a18a (diff)
Make `dot` be multiplication and add `dot.period` for periods (#747)
Diffstat (limited to 'tests/typ/math')
-rw-r--r--tests/typ/math/cases.typ2
-rw-r--r--tests/typ/math/matrix.typ10
-rw-r--r--tests/typ/math/multiline.typ4
-rw-r--r--tests/typ/math/syntax.typ4
4 files changed, 12 insertions, 8 deletions
diff --git a/tests/typ/math/cases.typ b/tests/typ/math/cases.typ
index 83a5ab66..d591ae50 100644
--- a/tests/typ/math/cases.typ
+++ b/tests/typ/math/cases.typ
@@ -2,7 +2,7 @@
---
$ f(x, y) := cases(
- 1 quad &"if" (x dot.op y)/2 <= 0,
+ 1 quad &"if" (x dot y)/2 <= 0,
2 &"if" x divides 2,
3 &"if" x in NN,
4 &"else",
diff --git a/tests/typ/math/matrix.typ b/tests/typ/math/matrix.typ
index e57e102e..c1fba627 100644
--- a/tests/typ/math/matrix.typ
+++ b/tests/typ/math/matrix.typ
@@ -3,12 +3,12 @@
---
// Test semicolon syntax.
#set align(center)
-$mat() dot.op
- mat(;) dot.op
- mat(1, 2) dot.op
+$mat() dot
+ mat(;) dot
+ mat(1, 2) dot
mat(1, 2;) \
- mat(1; 2) dot.op
- mat(1, 2; 3, 4) dot.op
+ mat(1; 2) dot
+ mat(1, 2; 3, 4) dot
mat(1 + &2, 1/2; &3, 4)$
---
diff --git a/tests/typ/math/multiline.typ b/tests/typ/math/multiline.typ
index 4f42ea63..b1f43800 100644
--- a/tests/typ/math/multiline.typ
+++ b/tests/typ/math/multiline.typ
@@ -4,13 +4,13 @@
// Test basic alignment.
$ x &= x + y \
&= x + 2z \
- &= sum x dot.op 2z $
+ &= sum x dot 2z $
---
// Test text before first alignment point.
$ x + 1 &= a^2 + b^2 \
y &= a + b^2 \
- z &= alpha dot.op beta $
+ z &= alpha dot beta $
---
// Test space between inner alignment points.
diff --git a/tests/typ/math/syntax.typ b/tests/typ/math/syntax.typ
index 26d3e444..17633357 100644
--- a/tests/typ/math/syntax.typ
+++ b/tests/typ/math/syntax.typ
@@ -12,6 +12,10 @@ $ underline(f' : NN -> RR) \
2 * 3 &"if" n != 5,
1 - 0 thick &...,
) $
+
+---
+// Test common symbols.
+$ dot \ dots \ ast \ tilde \ star $
---
// Error: 1:3 expected dollar sign