diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-03 16:50:26 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-03 16:50:26 +0100 |
| commit | 33928a00dc58250e24da1dae4e5db17e7b598d70 (patch) | |
| tree | 451083aa64f57b442359875b0415541463cb1a0c /tests/typ/base/blind.typ | |
| parent | 46921a8c283718402322d4d09c0bd1d9194278b1 (diff) | |
Tidy up library
Diffstat (limited to 'tests/typ/base/blind.typ')
| -rw-r--r-- | tests/typ/base/blind.typ | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/typ/base/blind.typ b/tests/typ/base/blind.typ new file mode 100644 index 00000000..17452dec --- /dev/null +++ b/tests/typ/base/blind.typ @@ -0,0 +1,32 @@ +// Test blind text. + +--- +// 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() |
