diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-13 17:22:33 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-13 17:22:33 +0100 |
| commit | c36a136e6f26ac99e58465ad072c282fe6dbaedf (patch) | |
| tree | d2c21e28033a4af68460e0159203274cb03e074a /tests/typ/func-hv.typ | |
| parent | 2aa4c5bfc6e35ca663aa77899975450e6a4a26de (diff) | |
Simpler diagnostic localization in tests ♻
Diffstat (limited to 'tests/typ/func-hv.typ')
| -rw-r--r-- | tests/typ/func-hv.typ | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/typ/func-hv.typ b/tests/typ/func-hv.typ new file mode 100644 index 00000000..f930bc12 --- /dev/null +++ b/tests/typ/func-hv.typ @@ -0,0 +1,24 @@ +// Test the `h` and `v` functions. + +// Ends paragraphs. +Tightly [v -5pt] packed + +// Eating up soft spacing. +Inv [h 0pt] isible + +// Multiple spacings in a row. +Add [h 10pt] [h 10pt] up + +// Relative to font size. +Relative [h 100%] spacing + +// Swapped axes. +[page main-dir: rtl, cross-dir: ttb][ + 1 [h 1cm] 2 + + 3 [v 1cm] 4 [v -1cm] 5 +] + +// Missing spacing. +// Error: 1:11-1:11 missing argument: spacing +Totally [h] ignored |
