diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-14 17:41:13 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-14 17:41:13 +0100 |
| commit | 469d78d610085044845f0fba462f1d8170b62cd4 (patch) | |
| tree | 18fe779679d316b271aaccc8a3cb007bcd692651 /tests/typ | |
| parent | 73b25bdad0f0dda66f0a73c8b980e0ddb1a59553 (diff) | |
Move let-binding tests to integration 🚚
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/lang/let.typ | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/typ/lang/let.typ b/tests/typ/lang/let.typ new file mode 100644 index 00000000..c7bba747 --- /dev/null +++ b/tests/typ/lang/let.typ @@ -0,0 +1,20 @@ +// Automatically initialized with `none`. +#let x; +{(x,)} + +// Can start with underscore. +#let _y=1; +{_y} + +// Multiline. +#let z = "world" + + " 🌏"; Hello, {z}! + +// Error: 1:6-1:7 expected identifier, found integer +#let 1; + +// Error: 4:1-4:3 unexpected identifier +// Error: 3:4-3:9 unexpected identifier +// Error: 3:1-3:1 expected semicolon +#let x = "" +Hi there |
