diff options
| author | MALO <57839069+MDLC01@users.noreply.github.com> | 2023-05-30 10:13:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 10:13:27 +0200 |
| commit | 644bbf99145042266ea8cf2890cef5771bd04be4 (patch) | |
| tree | b19aaeb5d9ad95dee18bf182804ca93d6719f1fd /tests | |
| parent | b6b6666efdde33a3727955fb2254ba16a886e1d3 (diff) | |
Add `fields` method to content (#1340)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compiler/methods.typ | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/typ/compiler/methods.typ b/tests/typ/compiler/methods.typ index 8b36dea9..864ed8ad 100644 --- a/tests/typ/compiler/methods.typ +++ b/tests/typ/compiler/methods.typ @@ -48,3 +48,8 @@ --- // Error: 2-5 cannot mutate a constant: box #box.push(1) + +--- +// Test content fields method. +#test([a].fields(), (text: "a")) +#test([a *b*].fields(), (children: ([a], [ ], strong[b]))) |
