summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-08-30 15:00:18 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-07 11:07:17 +0200
commit0d12f2ab23177642eef2e6bb9c583cdd0c743b33 (patch)
tree03a88594081dcf360d0d880167feb1debca970e6 /tests
parent0cb876ebf9138c1ee3b3c87165952a73569ffb28 (diff)
[WIP] Label and reference syntax
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/escape.pngbin13729 -> 14079 bytes
-rw-r--r--tests/ref/text/raw.pngbin18090 -> 18137 bytes
-rw-r--r--tests/typ/code/import.typ8
-rw-r--r--tests/typ/text/escape.typ4
-rw-r--r--tests/typ/text/raw.typ10
5 files changed, 9 insertions, 13 deletions
diff --git a/tests/ref/text/escape.png b/tests/ref/text/escape.png
index 77cc21f2..5ee9dbf8 100644
--- a/tests/ref/text/escape.png
+++ b/tests/ref/text/escape.png
Binary files differ
diff --git a/tests/ref/text/raw.png b/tests/ref/text/raw.png
index 2c101dcb..3a7691fd 100644
--- a/tests/ref/text/raw.png
+++ b/tests/ref/text/raw.png
Binary files differ
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.