summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/compiler/shorthand.pngbin4784 -> 10836 bytes
-rw-r--r--tests/typ/compiler/shorthand.typ43
2 files changed, 42 insertions, 1 deletions
diff --git a/tests/ref/compiler/shorthand.png b/tests/ref/compiler/shorthand.png
index 2f1634ca..719fa771 100644
--- a/tests/ref/compiler/shorthand.png
+++ b/tests/ref/compiler/shorthand.png
Binary files differ
diff --git a/tests/typ/compiler/shorthand.typ b/tests/typ/compiler/shorthand.typ
index c8a10851..2b7cb514 100644
--- a/tests/typ/compiler/shorthand.typ
+++ b/tests/typ/compiler/shorthand.typ
@@ -1,7 +1,7 @@
// Test shorthands for unicode codepoints.
---
-The non-breaking~space does work.
+The non-breaking space~does work, soft-?hypen also does.
---
// Make sure non-breaking and normal space always
@@ -18,3 +18,44 @@ a~b
---
#set text(font: "Roboto")
A... vs #"A..."
+
+---
+// Check all math shorthands
+$...$\
+$-$\
+$'$\
+$*$\
+$!=$\
+$:=$\
+$::=$\
+$=:$\
+$<<$\
+$<<<$\
+$>>$\
+$>>>$\
+$<=$\
+$>=$\
+$->$\
+$-->$\
+$|->$\
+$>->$\
+$->>$\
+$<-$\
+$<--$\
+$<-<$\
+$<<-$\
+$<->$\
+$<-->$\
+$~>$\
+$~~>$\
+$<~$\
+$<~~$\
+$=>$\
+$|=>$\
+$==>$\
+$<==$\
+$<=>$\
+$<==>$\
+$[|$\
+$|]$\
+$||$