summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/math/class.typ2
-rw-r--r--tests/suite/syntax/shorthand.typ7
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/suite/math/class.typ b/tests/suite/math/class.typ
index 7aad0446..d25071db 100644
--- a/tests/suite/math/class.typ
+++ b/tests/suite/math/class.typ
@@ -8,7 +8,7 @@ $ a class("normal", +) b \
{ x class("fence", \;) x > 0} \
a class("large", \/) b \
a class("punctuation", :) b \
- a class("relation", ~) b \
+ a class("relation", !) b \
a + class("unary", times) b \
class("vary", :) a class("vary", :) b $
diff --git a/tests/suite/syntax/shorthand.typ b/tests/suite/syntax/shorthand.typ
index 81aa6b7b..7d1782b9 100644
--- a/tests/suite/syntax/shorthand.typ
+++ b/tests/suite/syntax/shorthand.typ
@@ -19,12 +19,17 @@ a~b
#set text(font: "Roboto")
A... vs #"A..."
+--- shorthand-minus ---
+// Make sure shorthand is applied only before a digit.
+-a -1
+
--- shorthands-math ---
-// Check all math shorthands
+// Check all math shorthands.
$...$\
$-$\
$'$\
$*$\
+$~$\
$!=$\
$:=$\
$::=$\