diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-29 13:37:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-29 14:18:13 +0100 |
| commit | 0efe669278a5e1c3f2985eba2f3360e91159c54a (patch) | |
| tree | 502712857c48f0decb5e698257c0a96d358a436e /tests/typ/code/field.typ | |
| parent | 836692e73cff0356e409a9ba5b4887b86809d4ca (diff) | |
Reorganize library and tests
Diffstat (limited to 'tests/typ/code/field.typ')
| -rw-r--r-- | tests/typ/code/field.typ | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/typ/code/field.typ b/tests/typ/code/field.typ deleted file mode 100644 index abea87fb..00000000 --- a/tests/typ/code/field.typ +++ /dev/null @@ -1,40 +0,0 @@ -// Test field access. -// Ref: false - ---- -// Test field on dictionary. -#let dict = (nothing: "ness", hello: "world") -#test(dict.nothing, "ness") -{ - let world = dict - .hello - - test(world, "world") -} - ---- -// Test field on node. -#show list: node => { - test(node.items.len(), 3) -} - -- A -- B -- C - ---- -// Error: 6-13 dictionary does not contain key "invalid" -{(:).invalid} - ---- -// Error: 2-7 cannot access field on boolean -{false.ok} - ---- -// Error: 29-32 unknown field "fun" -#show heading: node => node.fun -= A - ---- -// Error: 8-12 expected identifier, found boolean -{false.true} |
