diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-05 15:04:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-05 15:10:15 +0200 |
| commit | b8233a9e01229963370f0357791ed02b067bce1b (patch) | |
| tree | e74df49e0db1ea578f45c49f81b6f9aa2b70aedf /tests | |
| parent | b865accae6c5e9f5d62afe4637c985c81b70eb4f (diff) | |
Don't allow empty lists and enums
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/structure/enum.png | bin | 26118 -> 25685 bytes | |||
| -rw-r--r-- | tests/ref/structure/list.png | bin | 21285 -> 22839 bytes | |||
| -rw-r--r-- | tests/typ/structure/enum.typ | 4 | ||||
| -rw-r--r-- | tests/typ/structure/list.typ | 5 |
4 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/structure/enum.png b/tests/ref/structure/enum.png Binary files differindex ecd1cf53..9aec9213 100644 --- a/tests/ref/structure/enum.png +++ b/tests/ref/structure/enum.png diff --git a/tests/ref/structure/list.png b/tests/ref/structure/list.png Binary files differindex e8a38616..ac90f4b2 100644 --- a/tests/ref/structure/list.png +++ b/tests/ref/structure/list.png diff --git a/tests/typ/structure/enum.typ b/tests/typ/structure/enum.typ index 24c28147..31eb0d62 100644 --- a/tests/typ/structure/enum.typ +++ b/tests/typ/structure/enum.typ @@ -47,6 +47,10 @@ ) --- +// Lone dot is not a list. +. + +--- // Error: 18-20 invalid pattern #set enum(label: "") diff --git a/tests/typ/structure/list.typ b/tests/typ/structure/list.typ index 67be1628..a01a90dd 100644 --- a/tests/typ/structure/list.typ +++ b/tests/typ/structure/list.typ @@ -49,3 +49,8 @@ paragraphs. // This doesn't work because of mixed tabs and spaces. - A with 2 spaces - B with 2 tabs + +--- +#set list(label: [-]) +- Bare hyphen +- is not a list |
