diff options
| author | TheJosefOlsson <143743179+TheJosefOlsson@users.noreply.github.com> | 2023-11-13 11:54:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 11:54:48 +0100 |
| commit | d25e6726e29b65f14ae14cff8518807c2067e690 (patch) | |
| tree | a7fd2e8143d8db8ad76bd520149237eaeb20fb8b | |
| parent | 1f273eb88fd58d51e1f9f9a375899a3a2ef954c8 (diff) | |
Add tests for shorthand (#2660)
| -rw-r--r-- | tests/ref/compiler/shorthand.png | bin | 4784 -> 10836 bytes | |||
| -rw-r--r-- | tests/typ/compiler/shorthand.typ | 43 |
2 files changed, 42 insertions, 1 deletions
diff --git a/tests/ref/compiler/shorthand.png b/tests/ref/compiler/shorthand.png Binary files differindex 2f1634ca..719fa771 100644 --- a/tests/ref/compiler/shorthand.png +++ b/tests/ref/compiler/shorthand.png 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 +$...$\ +$-$\ +$'$\ +$*$\ +$!=$\ +$:=$\ +$::=$\ +$=:$\ +$<<$\ +$<<<$\ +$>>$\ +$>>>$\ +$<=$\ +$>=$\ +$->$\ +$-->$\ +$|->$\ +$>->$\ +$->>$\ +$<-$\ +$<--$\ +$<-<$\ +$<<-$\ +$<->$\ +$<-->$\ +$~>$\ +$~~>$\ +$<~$\ +$<~~$\ +$=>$\ +$|=>$\ +$==>$\ +$<==$\ +$<=>$\ +$<==>$\ +$[|$\ +$|]$\ +$||$ |
