From 89f2e71852e96062ea9b756bf92fbf4e894871b1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 17 Nov 2021 17:09:19 +0100 Subject: Align node --- tests/typ/code/ops.typ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/typ/code') 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) -- cgit v1.2.3