diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-16 14:43:38 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-16 14:43:38 +0100 |
| commit | 67b45403975ba89150d17356dfbcad3e2ed18391 (patch) | |
| tree | d7818f69fcb3922949122a98070dd5617e59897e /tests/typ/compute | |
| parent | f60d344621a47726da7b9fbe7163b2a3fbc3f9ff (diff) | |
Dissolve utility category
Diffstat (limited to 'tests/typ/compute')
| -rw-r--r-- | tests/typ/compute/utility.typ | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/typ/compute/utility.typ b/tests/typ/compute/utility.typ deleted file mode 100644 index 73bb2e2d..00000000 --- a/tests/typ/compute/utility.typ +++ /dev/null @@ -1,49 +0,0 @@ -// Test integrated numbering patterns. - ---- -// Test basic call. -#lorem(19) - ---- -// Test custom paragraphs with user code. -#set text(8pt) - -#{ - let sentences = lorem(59) - .split(".") - .filter(s => s != "") - .map(s => s + ".") - - let used = 0 - for s in sentences { - if used < 2 { - used += 1 - } else { - parbreak() - used = 0 - } - s.trim() - [ ] - } -} - ---- -// Error: 7-9 missing argument: number of words -#lorem() - ---- -#for i in range(1, 9) { - numbering("*", i) - [ and ] - numbering("I.a", i, i) - [ for #i] - parbreak() -} - ---- -// Error: 17-18 number must be positive -#numbering("1", 0) - ---- -// Error: 17-19 number must be positive -#numbering("1", -1) |
