Add tests for shorthand (#2660)

This commit is contained in:
TheJosefOlsson 2023-11-13 11:54:48 +01:00 committed by GitHub
parent 1f273eb88f
commit d25e6726e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -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
$...$\
$-$\
$'$\
$*$\
$!=$\
$:=$\
$::=$\
$=:$\
$<<$\
$<<<$\
$>>$\
$>>>$\
$<=$\
$>=$\
$->$\
$-->$\
$|->$\
$>->$\
$->>$\
$<-$\
$<--$\
$<-<$\
$<<-$\
$<->$\
$<-->$\
$~>$\
$~~>$\
$<~$\
$<~~$\
$=>$\
$|=>$\
$==>$\
$<==$\
$<=>$\
$<==>$\
$[|$\
$|]$\
$||$