diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-17 17:09:19 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-17 17:09:19 +0100 |
| commit | 89f2e71852e96062ea9b756bf92fbf4e894871b1 (patch) | |
| tree | 836099ebd17adf30a24fc62464dfdd3d9c248480 /tests/typ/code | |
| parent | 9a800daa82833c57eee04e92c701ca9a05a67d3b (diff) | |
Align node
Diffstat (limited to 'tests/typ/code')
| -rw-r--r-- | tests/typ/code/ops.typ | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ index 61d1ce38..04a72e72 100644 --- a/tests/typ/code/ops.typ +++ b/tests/typ/code/ops.typ @@ -163,7 +163,6 @@ --- // Test with operator. -// Ref: true // Apply positional arguments. #let add(x, y) = x + y @@ -175,6 +174,9 @@ #test(f(4), 6) // Make sure that named arguments are overridable. -#let align with (horizontal: right) -#align[Right] \ -#align(horizontal: left)[Left] +#let inc(x, y: 1) = x + y +#test(inc(1), 2) + +#let inc with (y: 2) +#test(inc(2), 4) +#test(inc(2, y: 4), 6) |
