diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/escape.png | bin | 13729 -> 14079 bytes | |||
| -rw-r--r-- | tests/ref/text/raw.png | bin | 18090 -> 18137 bytes | |||
| -rw-r--r-- | tests/typ/code/import.typ | 8 | ||||
| -rw-r--r-- | tests/typ/text/escape.typ | 4 | ||||
| -rw-r--r-- | tests/typ/text/raw.typ | 10 |
5 files changed, 9 insertions, 13 deletions
diff --git a/tests/ref/text/escape.png b/tests/ref/text/escape.png Binary files differindex 77cc21f2..5ee9dbf8 100644 --- a/tests/ref/text/escape.png +++ b/tests/ref/text/escape.png diff --git a/tests/ref/text/raw.png b/tests/ref/text/raw.png Binary files differindex 2c101dcb..3a7691fd 100644 --- a/tests/ref/text/raw.png +++ b/tests/ref/text/raw.png diff --git a/tests/typ/code/import.typ b/tests/typ/code/import.typ index aef5e9c4..2c27f135 100644 --- a/tests/typ/code/import.typ +++ b/tests/typ/code/import.typ @@ -30,7 +30,7 @@ // Who needs whitespace anyways? #import*from"target.typ" -// Should output `Hi`. +// Should output `bye`. // Stop at semicolon. #import a, c from "target.typ";bye @@ -93,25 +93,21 @@ This is never reached. // Error: 17-18 expected expression, found comma #import a, b, c,, from "target.typ" -// Should output `"target.typ"`. // Error: 1-6 unexpected keyword `from` #from "target.typ" -// Should output `target`. // Error: 2:2 expected semicolon or line break #import * from "target.typ "target -// Should output `@ 0.2.1`. // Error: 28 expected semicolon or line break -#import * from "target.typ" @ 0.2.1 +#import * from "target.typ" ยง 0.2.1 // A star in the list. // Error: 12-13 expected expression, found star #import a, *, b from "target.typ" // An item after a star. -// Should output `, a from "target.typ"`. // Error: 10 expected keyword `from` #import *, a from "target.typ" diff --git a/tests/typ/text/escape.typ b/tests/typ/text/escape.typ index e03d73e5..ccaf78e9 100644 --- a/tests/typ/text/escape.typ +++ b/tests/typ/text/escape.typ @@ -3,10 +3,10 @@ --- // Escapable symbols. \\ \/ \[ \] \{ \} \# \* \_ \ -\= \~ \` \$ \" \' +\= \~ \` \$ \" \' \< \> \@ // No need to escape. -( ) ; < > +( ) ; // Unescapable. \a \: \; \( \) diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ index cf497d75..c17c8fec 100644 --- a/tests/typ/text/raw.typ +++ b/tests/typ/text/raw.typ @@ -31,11 +31,11 @@ Text The keyword ```rust let```. // Trimming depends on number backticks. -<``> \ -<` untrimmed `> \ -<``` trimmed` ```> \ -<``` trimmed ```> \ -<``` trimmed```> +(``) \ +(` untrimmed `) \ +(``` trimmed` ```) \ +(``` trimmed ```) \ +(``` trimmed```) \ --- // First line is not dedented and leading space is still possible. |
