diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/list-marker.png | bin | 0 -> 3769 bytes | |||
| -rw-r--r-- | tests/ref/layout/list.png | bin | 20936 -> 19366 bytes | |||
| -rw-r--r-- | tests/typ/layout/list-marker.typ | 34 | ||||
| -rw-r--r-- | tests/typ/layout/list.typ | 5 |
4 files changed, 34 insertions, 5 deletions
diff --git a/tests/ref/layout/list-marker.png b/tests/ref/layout/list-marker.png Binary files differnew file mode 100644 index 00000000..cd0eab44 --- /dev/null +++ b/tests/ref/layout/list-marker.png diff --git a/tests/ref/layout/list.png b/tests/ref/layout/list.png Binary files differindex 6db5fb71..b184aefa 100644 --- a/tests/ref/layout/list.png +++ b/tests/ref/layout/list.png diff --git a/tests/typ/layout/list-marker.typ b/tests/typ/layout/list-marker.typ new file mode 100644 index 00000000..0d223b58 --- /dev/null +++ b/tests/typ/layout/list-marker.typ @@ -0,0 +1,34 @@ +// Test list marker configuraiton. + +--- +// Test en-dash. +#set list(marker: [--]) +- A +- B + +--- +// Test that last item is repeated. +#set list(marker: ([--], [•])) +- A + - B + - C + +--- +// Test function. +#set list(marker: n => if n == 1 [--] else [•]) +- A +- B + - C + - D + - E +- F + +--- +// Test that bare hyphen doesn't lead to cycles and crashes. +#set list(marker: [-]) +- Bare hyphen is +- a bad marker + +--- +// Error: 19-21 must contain at least one marker +#set list(marker: ()) diff --git a/tests/typ/layout/list.typ b/tests/typ/layout/list.typ index 3fd9ddb1..71ccfe35 100644 --- a/tests/typ/layout/list.typ +++ b/tests/typ/layout/list.typ @@ -45,11 +45,6 @@ _Shopping list_ - B with 2 tabs --- -#set list(marker: [-]) -- Bare hyphen -- is not a list - ---- // Edge cases. - Not in list |
