diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-13 14:35:51 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-13 14:35:51 +0100 |
| commit | f190d33d0ca024d322668c0cd1df1eca20ed0210 (patch) | |
| tree | e111f07475ce6a905323a6297924c2f3b9f9300a | |
| parent | 3c74e4566a645b4f955a3805952e2f2af8506f22 (diff) | |
Better tests for pad function ✅
| -rw-r--r-- | tests/ref/library/pad.png | bin | 180 -> 1254 bytes | |||
| -rw-r--r-- | tests/typ/library/pad.typ | 16 |
2 files changed, 13 insertions, 3 deletions
diff --git a/tests/ref/library/pad.png b/tests/ref/library/pad.png Binary files differindex 46380689..a655061b 100644 --- a/tests/ref/library/pad.png +++ b/tests/ref/library/pad.png diff --git a/tests/typ/library/pad.typ b/tests/typ/library/pad.typ index 3ee538c2..c8bfe907 100644 --- a/tests/typ/library/pad.typ +++ b/tests/typ/library/pad.typ @@ -1,3 +1,13 @@ -#box(color: #9feb52)[ - #pad(10pt, box(color: #eb5278, width: 20pt, height: 20pt)) -] +// Test the `pad` function. + +--- +// Use for indentation. +#pad(left: 10pt, [Indented!]) + +// All sides together. +#box(color: #9feb52, + pad(10pt, right: 20pt, + box(color: #eb5278, width: 20pt, height: 20pt))) + +// Error: 13-23 missing argument: body +Hi #box(pad(left: 10pt)) there |
