summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLiam Murphy <liampm32@gmail.com>2023-07-18 00:08:19 +1000
committerGitHub <noreply@github.com>2023-07-17 16:08:19 +0200
commite0e797c27d4eff3fbca2a182aee2700f20ed6c21 (patch)
tree1a680869ae778b3e2bd9b0c61d3470553116a0ff /tests
parentc98c3d1a38d7cdc7fe219cfe8ca9c88cb0609aa8 (diff)
Classify `dots.c`, `dots.down`, `dots.up` and `dots.v` as normal (#1726)
Fixes #713. They were previously classified by Unicode as relations, which caused a '+' sign after one of them to be treated as a unary operator rather than a binary operator. This PR overrides the Unicode classification and classifies them as normal instead, which causes a '+' sign after one of them to be properly treated as a binary operator.
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/spacing.pngbin18271 -> 17881 bytes
-rw-r--r--tests/typ/math/spacing.typ3
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ref/math/spacing.png b/tests/ref/math/spacing.png
index abcfae80..5e717eff 100644
--- a/tests/ref/math/spacing.png
+++ b/tests/ref/math/spacing.png
Binary files differ
diff --git a/tests/typ/math/spacing.typ b/tests/typ/math/spacing.typ
index b763fb2d..132477f7 100644
--- a/tests/typ/math/spacing.typ
+++ b/tests/typ/math/spacing.typ
@@ -11,7 +11,8 @@ $a not b$ \
$a+b, a*b$ \
$sum x, sum(x)$ \
$sum product x$ \
-$f(x), zeta(x), "frac"(x)$
+$f(x), zeta(x), "frac"(x)$ \
+$a+dots.c+b$
---
// Test ignored vs non-ignored spaces.