summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTheJosefOlsson <143743179+TheJosefOlsson@users.noreply.github.com>2023-11-13 11:54:48 +0100
committerGitHub <noreply@github.com>2023-11-13 11:54:48 +0100
commitd25e6726e29b65f14ae14cff8518807c2067e690 (patch)
treea7fd2e8143d8db8ad76bd520149237eaeb20fb8b /tests
parent1f273eb88fd58d51e1f9f9a375899a3a2ef954c8 (diff)
Add tests for shorthand (#2660)
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
+$...$\
+$-$\
+$'$\
+$*$\
+$!=$\
+$:=$\
+$::=$\
+$=:$\
+$<<$\
+$<<<$\
+$>>$\
+$>>>$\
+$<=$\
+$>=$\
+$->$\
+$-->$\
+$|->$\
+$>->$\
+$->>$\
+$<-$\
+$<--$\
+$<-<$\
+$<<-$\
+$<->$\
+$<-->$\
+$~>$\
+$~~>$\
+$<~$\
+$<~~$\
+$=>$\
+$|=>$\
+$==>$\
+$<==$\
+$<=>$\
+$<==>$\
+$[|$\
+$|]$\
+$||$