diff options
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/content-field.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/compiler/content-field.typ b/tests/typ/compiler/content-field.typ index 1d3dceb7..f8adfc42 100644 --- a/tests/typ/compiler/content-field.typ +++ b/tests/typ/compiler/content-field.typ @@ -1,3 +1,17 @@ +// Tests for field introspection. + +--- +// Verify that non-inherent fields are hidden if not set. +#show figure: it => [ + `repr(it)`: #repr(it) \ + `it.has("gap"): `#repr(it.has("gap")) \ +] + +#figure[] + +#figure([], gap: 1pt) + +--- // Integrated test for content fields. #let compute(equation, ..vars) = { |
