Better tests for pad function ✅
This commit is contained in:
parent
3c74e4566a
commit
f190d33d0c
Binary file not shown.
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 1.2 KiB |
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user