Better tests for pad function

This commit is contained in:
Laurenz 2021-03-13 14:35:51 +01:00
parent 3c74e4566a
commit f190d33d0c
2 changed files with 13 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -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