From b89cd128ae118571efe8a5a5b40b9365e3007746 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 29 Jun 2021 13:08:16 +0200 Subject: Wide calls --- tests/typ/code/call-wide.typ | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 tests/typ/code/call-wide.typ (limited to 'tests/typ/code') diff --git a/tests/typ/code/call-wide.typ b/tests/typ/code/call-wide.typ new file mode 100644 index 00000000..2bb6d82e --- /dev/null +++ b/tests/typ/code/call-wide.typ @@ -0,0 +1,47 @@ +// Test wide calls. + +--- +// Test multiple wide calls in separate expressions. +#font!(color: eastern) - First +#font!(color: forest) - Second + +--- +// Test in heading. +# A #align!(right) B +C + +--- +// Test evaluation semantics. +// Ref: false + +#let r +#let x = 1 +#let f(x, body) = (x, body) + +[ + { r = f!(x) } + { x = 2 } +] + +#test(repr(r), "(1,