diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-05 12:49:39 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-05 12:49:39 +0200 |
| commit | ec884ec1d85f6e1d7868db3e82d572579cc5d345 (patch) | |
| tree | 92819f3a31abd6fdcd6b01adcd367bad344bef13 /tests/typ | |
| parent | 5a8534a395b500a25cbc46ee15ec031c8231de59 (diff) | |
Refactor syntax module
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/code/array.typ | 4 | ||||
| -rw-r--r-- | tests/typ/code/block.typ | 2 | ||||
| -rw-r--r-- | tests/typ/code/call.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/link.typ | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/code/array.typ b/tests/typ/code/array.typ index 1fa4d13c..cb8433cb 100644 --- a/tests/typ/code/array.typ +++ b/tests/typ/code/array.typ @@ -76,10 +76,10 @@ {)} // Error: 4 expected comma -// Error: 4-6 expected expression, found end of block comment +// Error: 4-6 unexpected end of block comment {(1*/2)} -// Error: 6-8 expected expression, found invalid token +// Error: 6-8 invalid number suffix {(1, 1u 2)} // Error: 3-4 expected expression, found comma diff --git a/tests/typ/code/block.typ b/tests/typ/code/block.typ index 194cde7a..d82d497f 100644 --- a/tests/typ/code/block.typ +++ b/tests/typ/code/block.typ @@ -112,7 +112,7 @@ --- // Multiple unseparated expressions in one line. -// Error: 2-4 expected expression, found invalid token +// Error: 2-4 invalid number suffix {1u} // Should output `1`. diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ index 5a3f45f9..dc582c9c 100644 --- a/tests/typ/code/call.typ +++ b/tests/typ/code/call.typ @@ -73,7 +73,7 @@ // Error: 7-8 expected expression, found colon #func(:) -// Error: 10-12 expected expression, found end of block comment +// Error: 10-12 unexpected end of block comment #func(a:1*/) // Error: 8 expected comma diff --git a/tests/typ/text/link.typ b/tests/typ/text/link.typ index 99b380f0..8e777956 100644 --- a/tests/typ/text/link.typ +++ b/tests/typ/text/link.typ @@ -5,7 +5,7 @@ https://example.com/ // Link with body. -#link("https://typst.app/")[Some text text text] +#link("https://typst.org/")[Some text text text] // With line break. This link appears #link("https://google.com/")[in the middle of] a paragraph. @@ -31,7 +31,7 @@ You could also make the // Transformed link. #set page(height: 60pt) #set link(underline: false) -#let mylink = link("https://typst.app/")[LINK] +#let mylink = link("https://typst.org/")[LINK] My cool #move(dx: 0.7cm, dy: 0.7cm, rotate(10deg, scale(200%, mylink))) --- |
