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 | |
| parent | 836692e73cff0356e409a9ba5b4887b86809d4ca (diff) | |
Reorganize library and tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/README.md | 4 | ||||
| -rw-r--r-- | tests/ref/base/blind.png | bin | 27575 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/base/color.png | bin | 595 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/base/data.png | bin | 8603 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/base/eval.png | bin | 5429 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/base/numbering.png | bin | 7112 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/basics/desc.png | bin | 0 -> 16887 bytes | |||
| -rw-r--r-- | tests/ref/basics/enum.png | bin | 0 -> 27690 bytes | |||
| -rw-r--r-- | tests/ref/basics/heading.png (renamed from tests/ref/structure/heading.png) | bin | 24767 -> 24767 bytes | |||
| -rw-r--r-- | tests/ref/basics/list-attach.png (renamed from tests/ref/structure/attach.png) | bin | 11016 -> 11016 bytes | |||
| -rw-r--r-- | tests/ref/basics/list.png (renamed from tests/ref/structure/list.png) | bin | 20656 -> 20656 bytes | |||
| -rw-r--r-- | tests/ref/basics/table.png (renamed from tests/ref/structure/table.png) | bin | 4295 -> 4295 bytes | |||
| -rw-r--r-- | tests/ref/code/block.png | bin | 2005 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/if.png | bin | 2336 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/import.png | bin | 4675 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/include.png | bin | 47545 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/let.png | bin | 3170 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/ops.png | bin | 977 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/return.png | bin | 2946 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/code/while.png | bin | 1058 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/coma.png | bin | 88639 -> 88737 bytes | |||
| -rw-r--r-- | tests/ref/compiler/array.png (renamed from tests/ref/code/array.png) | bin | 6191 -> 6191 bytes | |||
| -rw-r--r-- | tests/ref/compiler/bench.png | bin | 0 -> 40303 bytes | |||
| -rw-r--r-- | tests/ref/compiler/block.png | bin | 0 -> 1982 bytes | |||
| -rw-r--r-- | tests/ref/compiler/break-continue.png (renamed from tests/ref/code/break-continue.png) | bin | 7268 -> 7268 bytes | |||
| -rw-r--r-- | tests/ref/compiler/call.png (renamed from tests/ref/code/call.png) | bin | 2337 -> 2337 bytes | |||
| -rw-r--r-- | tests/ref/compiler/closure.png (renamed from tests/ref/code/closure.png) | bin | 520 -> 520 bytes | |||
| -rw-r--r-- | tests/ref/compiler/comment.png (renamed from tests/ref/code/comment.png) | bin | 797 -> 797 bytes | |||
| -rw-r--r-- | tests/ref/compiler/construct.png (renamed from tests/ref/style/construct.png) | bin | 6024 -> 6024 bytes | |||
| -rw-r--r-- | tests/ref/compiler/dict.png (renamed from tests/ref/code/dict.png) | bin | 4584 -> 4584 bytes | |||
| -rw-r--r-- | tests/ref/compiler/for.png (renamed from tests/ref/code/for.png) | bin | 3521 -> 3521 bytes | |||
| -rw-r--r-- | tests/ref/compiler/if.png | bin | 0 -> 2244 bytes | |||
| -rw-r--r-- | tests/ref/compiler/import.png | bin | 0 -> 4538 bytes | |||
| -rw-r--r-- | tests/ref/compiler/include.png | bin | 0 -> 47551 bytes | |||
| -rw-r--r-- | tests/ref/compiler/label.png (renamed from tests/ref/style/label.png) | bin | 20873 -> 20873 bytes | |||
| -rw-r--r-- | tests/ref/compiler/let.png | bin | 0 -> 3073 bytes | |||
| -rw-r--r-- | tests/ref/compiler/methods-collection.png (renamed from tests/ref/base/collection.png) | bin | 1384 -> 1384 bytes | |||
| -rw-r--r-- | tests/ref/compiler/methods-color.png | bin | 0 -> 506 bytes | |||
| -rw-r--r-- | tests/ref/compiler/ops.png | bin | 0 -> 972 bytes | |||
| -rw-r--r-- | tests/ref/compiler/repr.png (renamed from tests/ref/code/repr.png) | bin | 29799 -> 29799 bytes | |||
| -rw-r--r-- | tests/ref/compiler/return.png | bin | 0 -> 2907 bytes | |||
| -rw-r--r-- | tests/ref/compiler/set.png (renamed from tests/ref/style/set.png) | bin | 24744 -> 24744 bytes | |||
| -rw-r--r-- | tests/ref/compiler/shorthand.png (renamed from tests/ref/text/shorthands.png) | bin | 4842 -> 4842 bytes | |||
| -rw-r--r-- | tests/ref/compiler/show-bare.png (renamed from tests/ref/style/show-bare.png) | bin | 25853 -> 25853 bytes | |||
| -rw-r--r-- | tests/ref/compiler/show-node.png (renamed from tests/ref/style/show-node.png) | bin | 23443 -> 23443 bytes | |||
| -rw-r--r-- | tests/ref/compiler/show-recursive.png (renamed from tests/ref/style/show-recursive.png) | bin | 15653 -> 15653 bytes | |||
| -rw-r--r-- | tests/ref/compiler/show-selector.png (renamed from tests/ref/style/show-selector.png) | bin | 12923 -> 12923 bytes | |||
| -rw-r--r-- | tests/ref/compiler/show-text.png (renamed from tests/ref/style/show-text.png) | bin | 43571 -> 43571 bytes | |||
| -rw-r--r-- | tests/ref/compiler/while.png | bin | 0 -> 995 bytes | |||
| -rw-r--r-- | tests/ref/compute/create.png | bin | 0 -> 155 bytes | |||
| -rw-r--r-- | tests/ref/compute/data.png | bin | 0 -> 8602 bytes | |||
| -rw-r--r-- | tests/ref/compute/utility.png | bin | 0 -> 34441 bytes | |||
| -rw-r--r-- | tests/ref/empty.png | bin | 94 -> 92 bytes | |||
| -rw-r--r-- | tests/ref/graphics/hide.png | bin | 936 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/graphics/shape-circle.png | bin | 40653 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/graphics/shape-ellipse.png | bin | 24571 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/graphics/shape-fill-stroke.png | bin | 6371 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/graphics/shape-rect.png | bin | 16266 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/graphics/shape-square.png | bin | 18777 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/columns.png | bin | 106624 -> 122708 bytes | |||
| -rw-r--r-- | tests/ref/layout/container.png | bin | 7628 -> 7512 bytes | |||
| -rw-r--r-- | tests/ref/layout/flow-orphan.png | bin | 0 -> 89335 bytes | |||
| -rw-r--r-- | tests/ref/layout/grid-1.png | bin | 8863 -> 8663 bytes | |||
| -rw-r--r-- | tests/ref/layout/grid-2.png | bin | 16566 -> 16352 bytes | |||
| -rw-r--r-- | tests/ref/layout/grid-4.png | bin | 430 -> 423 bytes | |||
| -rw-r--r-- | tests/ref/layout/grid-5.png | bin | 3814 -> 3699 bytes | |||
| -rw-r--r-- | tests/ref/layout/hide.png | bin | 0 -> 911 bytes | |||
| -rw-r--r-- | tests/ref/layout/locate-break.png | bin | 122 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/locate-group.png | bin | 42394 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/locate.png | bin | 2795 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/orphan-heading.png | bin | 8239 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/orphan-widow.png | bin | 71274 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/page-margin.png | bin | 2998 -> 2957 bytes | |||
| -rw-r--r-- | tests/ref/layout/page-style.png | bin | 1313 -> 1294 bytes | |||
| -rw-r--r-- | tests/ref/layout/page.png | bin | 7401 -> 7221 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-bidi.png (renamed from tests/ref/text/bidi.png) | bin | 26171 -> 26171 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-indent.png | bin | 0 -> 46125 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-justify.png (renamed from tests/ref/text/justify.png) | bin | 30128 -> 30128 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-knuth.png | bin | 0 -> 69406 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-simple.png | bin | 0 -> 58353 bytes | |||
| -rw-r--r-- | tests/ref/layout/par.png (renamed from tests/ref/text/par.png) | bin | 25788 -> 25788 bytes | |||
| -rw-r--r-- | tests/ref/layout/repeat.png | bin | 0 -> 9344 bytes | |||
| -rw-r--r-- | tests/ref/layout/stack-2.png | bin | 8673 -> 8430 bytes | |||
| -rw-r--r-- | tests/ref/layout/transform.png (renamed from tests/ref/graphics/transform.png) | bin | 52123 -> 52123 bytes | |||
| -rw-r--r-- | tests/ref/math/simple.png (renamed from tests/ref/layout/math.png) | bin | 6554 -> 6554 bytes | |||
| -rw-r--r-- | tests/ref/meta/document.png | bin | 0 -> 68 bytes | |||
| -rw-r--r-- | tests/ref/meta/link.png | bin | 0 -> 49384 bytes | |||
| -rw-r--r-- | tests/ref/structure/desc.png | bin | 16889 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/structure/enum.png | bin | 27684 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/style/closure.png | bin | 7567 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/baseline.png | bin | 6204 -> 6168 bytes | |||
| -rw-r--r-- | tests/ref/text/chinese.png | bin | 22527 -> 21925 bytes | |||
| -rw-r--r-- | tests/ref/text/emph-strong.png | bin | 6988 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/emphasis.png | bin | 0 -> 6900 bytes | |||
| -rw-r--r-- | tests/ref/text/features.png | bin | 10734 -> 10673 bytes | |||
| -rw-r--r-- | tests/ref/text/hyphenate.png | bin | 22150 -> 22158 bytes | |||
| -rw-r--r-- | tests/ref/text/indent.png | bin | 46139 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/knuth.png | bin | 69313 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/link.png | bin | 49393 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/microtype.png | bin | 10904 -> 10903 bytes | |||
| -rw-r--r-- | tests/ref/text/plain.png | bin | 58344 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/quotes.png | bin | 65503 -> 65498 bytes | |||
| -rw-r--r-- | tests/ref/text/raw-highlight.png (renamed from tests/ref/text/code.png) | bin | 40777 -> 40777 bytes | |||
| -rw-r--r-- | tests/ref/text/raw.png | bin | 18137 -> 18101 bytes | |||
| -rw-r--r-- | tests/ref/text/repeat.png | bin | 9342 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/text/shift.png (renamed from tests/ref/text/shifts.png) | bin | 7781 -> 7781 bytes | |||
| -rw-r--r-- | tests/ref/text/space.png | bin | 0 -> 5941 bytes | |||
| -rw-r--r-- | tests/ref/text/tracking-spacing.png | bin | 6479 -> 6467 bytes | |||
| -rw-r--r-- | tests/ref/text/whitespace.png | bin | 6273 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/visualize/image.png (renamed from tests/ref/graphics/image.png) | bin | 176635 -> 176635 bytes | |||
| -rw-r--r-- | tests/ref/visualize/line.png (renamed from tests/ref/graphics/line.png) | bin | 1562 -> 1562 bytes | |||
| -rw-r--r-- | tests/ref/visualize/shape-aspect.png (renamed from tests/ref/graphics/shape-aspect.png) | bin | 4501 -> 4501 bytes | |||
| -rw-r--r-- | tests/ref/visualize/shape-circle.png | bin | 0 -> 39277 bytes | |||
| -rw-r--r-- | tests/ref/visualize/shape-ellipse.png | bin | 0 -> 23989 bytes | |||
| -rw-r--r-- | tests/ref/visualize/shape-fill-stroke.png | bin | 0 -> 6192 bytes | |||
| -rw-r--r-- | tests/ref/visualize/shape-rect.png | bin | 0 -> 16269 bytes | |||
| -rw-r--r-- | tests/ref/visualize/shape-square.png | bin | 0 -> 18290 bytes | |||
| -rw-r--r-- | tests/src/benches.rs | 4 | ||||
| -rw-r--r-- | tests/src/tests.rs | 2 | ||||
| -rw-r--r-- | tests/typ/base/assert.typ | 23 | ||||
| -rw-r--r-- | tests/typ/base/numbering.typ | 13 | ||||
| -rw-r--r-- | tests/typ/base/type.typ | 7 | ||||
| -rw-r--r-- | tests/typ/basics/desc.typ (renamed from tests/typ/structure/desc.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/basics/enum.typ (renamed from tests/typ/structure/enum.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/basics/heading.typ (renamed from tests/typ/structure/heading.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/basics/list-attach.typ (renamed from tests/typ/structure/attach.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/basics/list.typ (renamed from tests/typ/structure/list.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/basics/table.typ (renamed from tests/typ/structure/table.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/array.typ (renamed from tests/typ/code/array.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/bench.typ (renamed from tests/typ/benches/bench.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/block.typ (renamed from tests/typ/code/block.typ) | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/break-continue.typ (renamed from tests/typ/code/break-continue.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/call.typ (renamed from tests/typ/code/call.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/closure.typ (renamed from tests/typ/code/closure.typ) | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/comment.typ (renamed from tests/typ/code/comment.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/construct.typ (renamed from tests/typ/style/construct.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/dict.typ (renamed from tests/typ/code/dict.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/field.typ (renamed from tests/typ/code/field.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/for.typ (renamed from tests/typ/code/for.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/if.typ (renamed from tests/typ/code/if.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/import.typ (renamed from tests/typ/code/import.typ) | 36 | ||||
| -rw-r--r-- | tests/typ/compiler/include.typ (renamed from tests/typ/code/include.typ) | 10 | ||||
| -rw-r--r-- | tests/typ/compiler/label.typ (renamed from tests/typ/style/label.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/let.typ (renamed from tests/typ/code/let.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/methods-collection.typ (renamed from tests/typ/base/collection.typ) | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/methods-color.typ | 22 | ||||
| -rw-r--r-- | tests/typ/compiler/methods-str.typ (renamed from tests/typ/base/string.typ) | 25 | ||||
| -rw-r--r-- | tests/typ/compiler/methods.typ (renamed from tests/typ/code/methods.typ) | 4 | ||||
| -rw-r--r-- | tests/typ/compiler/module.typ (renamed from tests/typ/code/target.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/modules/chap1.typ (renamed from tests/typ/code/importable/chap1.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/modules/chap2.typ (renamed from tests/typ/code/importable/chap2.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/modules/cycle1.typ (renamed from tests/typ/code/importable/cycle1.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/modules/cycle2.typ (renamed from tests/typ/code/importable/cycle2.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/ops-assoc.typ (renamed from tests/typ/code/ops-assoc.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/ops-invalid.typ (renamed from tests/typ/code/ops-invalid.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/ops-prec.typ (renamed from tests/typ/code/ops-prec.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/ops.typ (renamed from tests/typ/code/ops.typ) | 4 | ||||
| -rw-r--r-- | tests/typ/compiler/repr.typ (renamed from tests/typ/code/repr.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/return.typ (renamed from tests/typ/code/return.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/set.typ (renamed from tests/typ/style/set.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/shorthand.typ (renamed from tests/typ/text/shorthands.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/show-bare.typ (renamed from tests/typ/style/show-bare.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/show-node.typ (renamed from tests/typ/style/show-node.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/show-recursive.typ (renamed from tests/typ/style/show-recursive.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/show-selector.typ (renamed from tests/typ/style/show-selector.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/show-text.typ (renamed from tests/typ/style/show-text.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/spread.typ (renamed from tests/typ/code/spread.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compiler/while.typ (renamed from tests/typ/code/while.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compute/calc.typ (renamed from tests/typ/base/calc.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/compute/create.typ (renamed from tests/typ/base/color.typ) | 36 | ||||
| -rw-r--r-- | tests/typ/compute/data.typ (renamed from tests/typ/base/data.typ) | 2 | ||||
| -rw-r--r-- | tests/typ/compute/foundations.typ (renamed from tests/typ/base/eval.typ) | 28 | ||||
| -rw-r--r-- | tests/typ/compute/utility.typ (renamed from tests/typ/base/blind.typ) | 14 | ||||
| -rw-r--r-- | tests/typ/layout/flow-orphan.typ (renamed from tests/typ/layout/orphan-widow.typ) | 9 | ||||
| -rw-r--r-- | tests/typ/layout/hide.typ (renamed from tests/typ/graphics/hide.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/orphan-heading.typ | 8 | ||||
| -rw-r--r-- | tests/typ/layout/par-bidi.typ (renamed from tests/typ/text/bidi.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/par-indent.typ (renamed from tests/typ/text/indent.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/par-justify.typ (renamed from tests/typ/text/justify.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/par-knuth.typ (renamed from tests/typ/text/knuth.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/par-simple.typ (renamed from tests/typ/text/plain.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/par.typ (renamed from tests/typ/text/par.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/repeat.typ (renamed from tests/typ/text/repeat.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/transform.typ (renamed from tests/typ/graphics/transform.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/math/simple.typ (renamed from tests/typ/layout/math.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/meta/document.typ (renamed from tests/typ/style/document.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/meta/link.typ (renamed from tests/typ/text/link.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/text/case.typ | 12 | ||||
| -rw-r--r-- | tests/typ/text/emphasis.typ (renamed from tests/typ/text/emph-strong.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/text/raw-highlight.typ (renamed from tests/typ/text/code.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/text/shift.typ (renamed from tests/typ/text/shifts.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/text/space.typ (renamed from tests/typ/text/whitespace.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/image.typ (renamed from tests/typ/graphics/image.typ) | 2 | ||||
| -rw-r--r-- | tests/typ/visualize/line.typ (renamed from tests/typ/graphics/line.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-aspect.typ (renamed from tests/typ/graphics/shape-aspect.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-circle.typ (renamed from tests/typ/graphics/shape-circle.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-ellipse.typ (renamed from tests/typ/graphics/shape-ellipse.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-fill-stroke.typ (renamed from tests/typ/graphics/shape-fill-stroke.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-rect.typ (renamed from tests/typ/graphics/shape-rect.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/visualize/shape-square.typ (renamed from tests/typ/graphics/shape-square.typ) | 0 |
200 files changed, 135 insertions, 136 deletions
diff --git a/tests/README.md b/tests/README.md index 7ad0535c..5356cf65 100644 --- a/tests/README.md +++ b/tests/README.md @@ -3,7 +3,9 @@ ## Directory structure Top level directory structure: - `src`: Testing code. -- `typ`: Input files. +- `typ`: Input files. The tests in `compiler` specifically test the compiler + while the others test the standard library (but also the compiler + indirectly). - `ref`: Reference images which the output is compared with to determine whether a test passed or failed. - `png`: PNG files produced by tests. diff --git a/tests/ref/base/blind.png b/tests/ref/base/blind.png Binary files differdeleted file mode 100644 index e972567e..00000000 --- a/tests/ref/base/blind.png +++ /dev/null diff --git a/tests/ref/base/color.png b/tests/ref/base/color.png Binary files differdeleted file mode 100644 index 496013bb..00000000 --- a/tests/ref/base/color.png +++ /dev/null diff --git a/tests/ref/base/data.png b/tests/ref/base/data.png Binary files differdeleted file mode 100644 index 69e0ae38..00000000 --- a/tests/ref/base/data.png +++ /dev/null diff --git a/tests/ref/base/eval.png b/tests/ref/base/eval.png Binary files differdeleted file mode 100644 index 38c1d64e..00000000 --- a/tests/ref/base/eval.png +++ /dev/null diff --git a/tests/ref/base/numbering.png b/tests/ref/base/numbering.png Binary files differdeleted file mode 100644 index aa34de29..00000000 --- a/tests/ref/base/numbering.png +++ /dev/null diff --git a/tests/ref/basics/desc.png b/tests/ref/basics/desc.png Binary files differnew file mode 100644 index 00000000..e186ec8c --- /dev/null +++ b/tests/ref/basics/desc.png diff --git a/tests/ref/basics/enum.png b/tests/ref/basics/enum.png Binary files differnew file mode 100644 index 00000000..0c9c9487 --- /dev/null +++ b/tests/ref/basics/enum.png diff --git a/tests/ref/structure/heading.png b/tests/ref/basics/heading.png Binary files differindex 96ffcb80..96ffcb80 100644 --- a/tests/ref/structure/heading.png +++ b/tests/ref/basics/heading.png diff --git a/tests/ref/structure/attach.png b/tests/ref/basics/list-attach.png Binary files differindex 9b0e4c68..9b0e4c68 100644 --- a/tests/ref/structure/attach.png +++ b/tests/ref/basics/list-attach.png diff --git a/tests/ref/structure/list.png b/tests/ref/basics/list.png Binary files differindex 5d0f03c0..5d0f03c0 100644 --- a/tests/ref/structure/list.png +++ b/tests/ref/basics/list.png diff --git a/tests/ref/structure/table.png b/tests/ref/basics/table.png Binary files differindex f50f613b..f50f613b 100644 --- a/tests/ref/structure/table.png +++ b/tests/ref/basics/table.png diff --git a/tests/ref/code/block.png b/tests/ref/code/block.png Binary files differdeleted file mode 100644 index 9cd0ba36..00000000 --- a/tests/ref/code/block.png +++ /dev/null diff --git a/tests/ref/code/if.png b/tests/ref/code/if.png Binary files differdeleted file mode 100644 index 177e61bd..00000000 --- a/tests/ref/code/if.png +++ /dev/null diff --git a/tests/ref/code/import.png b/tests/ref/code/import.png Binary files differdeleted file mode 100644 index 00d3b2ee..00000000 --- a/tests/ref/code/import.png +++ /dev/null diff --git a/tests/ref/code/include.png b/tests/ref/code/include.png Binary files differdeleted file mode 100644 index d3d66032..00000000 --- a/tests/ref/code/include.png +++ /dev/null diff --git a/tests/ref/code/let.png b/tests/ref/code/let.png Binary files differdeleted file mode 100644 index 07afcb96..00000000 --- a/tests/ref/code/let.png +++ /dev/null diff --git a/tests/ref/code/ops.png b/tests/ref/code/ops.png Binary files differdeleted file mode 100644 index abcab137..00000000 --- a/tests/ref/code/ops.png +++ /dev/null diff --git a/tests/ref/code/return.png b/tests/ref/code/return.png Binary files differdeleted file mode 100644 index 50410887..00000000 --- a/tests/ref/code/return.png +++ /dev/null diff --git a/tests/ref/code/while.png b/tests/ref/code/while.png Binary files differdeleted file mode 100644 index 026f9943..00000000 --- a/tests/ref/code/while.png +++ /dev/null diff --git a/tests/ref/coma.png b/tests/ref/coma.png Binary files differindex 62edb5e0..8bfbc203 100644 --- a/tests/ref/coma.png +++ b/tests/ref/coma.png diff --git a/tests/ref/code/array.png b/tests/ref/compiler/array.png Binary files differindex cbda8aee..cbda8aee 100644 --- a/tests/ref/code/array.png +++ b/tests/ref/compiler/array.png diff --git a/tests/ref/compiler/bench.png b/tests/ref/compiler/bench.png Binary files differnew file mode 100644 index 00000000..cadc0914 --- /dev/null +++ b/tests/ref/compiler/bench.png diff --git a/tests/ref/compiler/block.png b/tests/ref/compiler/block.png Binary files differnew file mode 100644 index 00000000..c5782da5 --- /dev/null +++ b/tests/ref/compiler/block.png diff --git a/tests/ref/code/break-continue.png b/tests/ref/compiler/break-continue.png Binary files differindex 401b3940..401b3940 100644 --- a/tests/ref/code/break-continue.png +++ b/tests/ref/compiler/break-continue.png diff --git a/tests/ref/code/call.png b/tests/ref/compiler/call.png Binary files differindex f0f2e852..f0f2e852 100644 --- a/tests/ref/code/call.png +++ b/tests/ref/compiler/call.png diff --git a/tests/ref/code/closure.png b/tests/ref/compiler/closure.png Binary files differindex b4c83256..b4c83256 100644 --- a/tests/ref/code/closure.png +++ b/tests/ref/compiler/closure.png diff --git a/tests/ref/code/comment.png b/tests/ref/compiler/comment.png Binary files differindex 5928dc87..5928dc87 100644 --- a/tests/ref/code/comment.png +++ b/tests/ref/compiler/comment.png diff --git a/tests/ref/style/construct.png b/tests/ref/compiler/construct.png Binary files differindex 43cf5d79..43cf5d79 100644 --- a/tests/ref/style/construct.png +++ b/tests/ref/compiler/construct.png diff --git a/tests/ref/code/dict.png b/tests/ref/compiler/dict.png Binary files differindex 04a5dd7d..04a5dd7d 100644 --- a/tests/ref/code/dict.png +++ b/tests/ref/compiler/dict.png diff --git a/tests/ref/code/for.png b/tests/ref/compiler/for.png Binary files differindex 60c505ec..8c08ab04 100644 --- a/tests/ref/code/for.png +++ b/tests/ref/compiler/for.png diff --git a/tests/ref/compiler/if.png b/tests/ref/compiler/if.png Binary files differnew file mode 100644 index 00000000..cca9a570 --- /dev/null +++ b/tests/ref/compiler/if.png diff --git a/tests/ref/compiler/import.png b/tests/ref/compiler/import.png Binary files differnew file mode 100644 index 00000000..dddbe408 --- /dev/null +++ b/tests/ref/compiler/import.png diff --git a/tests/ref/compiler/include.png b/tests/ref/compiler/include.png Binary files differnew file mode 100644 index 00000000..09ff7498 --- /dev/null +++ b/tests/ref/compiler/include.png diff --git a/tests/ref/style/label.png b/tests/ref/compiler/label.png Binary files differindex ffad978c..ffad978c 100644 --- a/tests/ref/style/label.png +++ b/tests/ref/compiler/label.png diff --git a/tests/ref/compiler/let.png b/tests/ref/compiler/let.png Binary files differnew file mode 100644 index 00000000..7a45eca1 --- /dev/null +++ b/tests/ref/compiler/let.png diff --git a/tests/ref/base/collection.png b/tests/ref/compiler/methods-collection.png Binary files differindex e93e2beb..e93e2beb 100644 --- a/tests/ref/base/collection.png +++ b/tests/ref/compiler/methods-collection.png diff --git a/tests/ref/compiler/methods-color.png b/tests/ref/compiler/methods-color.png Binary files differnew file mode 100644 index 00000000..9b65c16d --- /dev/null +++ b/tests/ref/compiler/methods-color.png diff --git a/tests/ref/compiler/ops.png b/tests/ref/compiler/ops.png Binary files differnew file mode 100644 index 00000000..ef6ffb4a --- /dev/null +++ b/tests/ref/compiler/ops.png diff --git a/tests/ref/code/repr.png b/tests/ref/compiler/repr.png Binary files differindex b81083f5..b81083f5 100644 --- a/tests/ref/code/repr.png +++ b/tests/ref/compiler/repr.png diff --git a/tests/ref/compiler/return.png b/tests/ref/compiler/return.png Binary files differnew file mode 100644 index 00000000..6d558e62 --- /dev/null +++ b/tests/ref/compiler/return.png diff --git a/tests/ref/style/set.png b/tests/ref/compiler/set.png Binary files differindex 94470239..94470239 100644 --- a/tests/ref/style/set.png +++ b/tests/ref/compiler/set.png diff --git a/tests/ref/text/shorthands.png b/tests/ref/compiler/shorthand.png Binary files differindex ddb679f5..ddb679f5 100644 --- a/tests/ref/text/shorthands.png +++ b/tests/ref/compiler/shorthand.png diff --git a/tests/ref/style/show-bare.png b/tests/ref/compiler/show-bare.png Binary files differindex ff746d26..ff746d26 100644 --- a/tests/ref/style/show-bare.png +++ b/tests/ref/compiler/show-bare.png diff --git a/tests/ref/style/show-node.png b/tests/ref/compiler/show-node.png Binary files differindex 1ea33e4f..1ea33e4f 100644 --- a/tests/ref/style/show-node.png +++ b/tests/ref/compiler/show-node.png diff --git a/tests/ref/style/show-recursive.png b/tests/ref/compiler/show-recursive.png Binary files differindex 4c47a7af..4c47a7af 100644 --- a/tests/ref/style/show-recursive.png +++ b/tests/ref/compiler/show-recursive.png diff --git a/tests/ref/style/show-selector.png b/tests/ref/compiler/show-selector.png Binary files differindex 1cdcfa3f..1cdcfa3f 100644 --- a/tests/ref/style/show-selector.png +++ b/tests/ref/compiler/show-selector.png diff --git a/tests/ref/style/show-text.png b/tests/ref/compiler/show-text.png Binary files differindex d0ed2f92..d0ed2f92 100644 --- a/tests/ref/style/show-text.png +++ b/tests/ref/compiler/show-text.png diff --git a/tests/ref/compiler/while.png b/tests/ref/compiler/while.png Binary files differnew file mode 100644 index 00000000..236be426 --- /dev/null +++ b/tests/ref/compiler/while.png diff --git a/tests/ref/compute/create.png b/tests/ref/compute/create.png Binary files differnew file mode 100644 index 00000000..600e6174 --- /dev/null +++ b/tests/ref/compute/create.png diff --git a/tests/ref/compute/data.png b/tests/ref/compute/data.png Binary files differnew file mode 100644 index 00000000..678a1fd1 --- /dev/null +++ b/tests/ref/compute/data.png diff --git a/tests/ref/compute/utility.png b/tests/ref/compute/utility.png Binary files differnew file mode 100644 index 00000000..035ce431 --- /dev/null +++ b/tests/ref/compute/utility.png diff --git a/tests/ref/empty.png b/tests/ref/empty.png Binary files differindex 87c06b0a..db3a6695 100644 --- a/tests/ref/empty.png +++ b/tests/ref/empty.png diff --git a/tests/ref/graphics/hide.png b/tests/ref/graphics/hide.png Binary files differdeleted file mode 100644 index 8a60cf90..00000000 --- a/tests/ref/graphics/hide.png +++ /dev/null diff --git a/tests/ref/graphics/shape-circle.png b/tests/ref/graphics/shape-circle.png Binary files differdeleted file mode 100644 index 040c6f0b..00000000 --- a/tests/ref/graphics/shape-circle.png +++ /dev/null diff --git a/tests/ref/graphics/shape-ellipse.png b/tests/ref/graphics/shape-ellipse.png Binary files differdeleted file mode 100644 index 296fc14e..00000000 --- a/tests/ref/graphics/shape-ellipse.png +++ /dev/null diff --git a/tests/ref/graphics/shape-fill-stroke.png b/tests/ref/graphics/shape-fill-stroke.png Binary files differdeleted file mode 100644 index 91cddcc2..00000000 --- a/tests/ref/graphics/shape-fill-stroke.png +++ /dev/null diff --git a/tests/ref/graphics/shape-rect.png b/tests/ref/graphics/shape-rect.png Binary files differdeleted file mode 100644 index e2ea0502..00000000 --- a/tests/ref/graphics/shape-rect.png +++ /dev/null diff --git a/tests/ref/graphics/shape-square.png b/tests/ref/graphics/shape-square.png Binary files differdeleted file mode 100644 index 00a0c848..00000000 --- a/tests/ref/graphics/shape-square.png +++ /dev/null diff --git a/tests/ref/layout/columns.png b/tests/ref/layout/columns.png Binary files differindex 6f210510..df7b7084 100644 --- a/tests/ref/layout/columns.png +++ b/tests/ref/layout/columns.png diff --git a/tests/ref/layout/container.png b/tests/ref/layout/container.png Binary files differindex 87484c25..f82df108 100644 --- a/tests/ref/layout/container.png +++ b/tests/ref/layout/container.png diff --git a/tests/ref/layout/flow-orphan.png b/tests/ref/layout/flow-orphan.png Binary files differnew file mode 100644 index 00000000..1e5fade4 --- /dev/null +++ b/tests/ref/layout/flow-orphan.png diff --git a/tests/ref/layout/grid-1.png b/tests/ref/layout/grid-1.png Binary files differindex 2c57e28c..99a97bb7 100644 --- a/tests/ref/layout/grid-1.png +++ b/tests/ref/layout/grid-1.png diff --git a/tests/ref/layout/grid-2.png b/tests/ref/layout/grid-2.png Binary files differindex 64986797..8bc22660 100644 --- a/tests/ref/layout/grid-2.png +++ b/tests/ref/layout/grid-2.png diff --git a/tests/ref/layout/grid-4.png b/tests/ref/layout/grid-4.png Binary files differindex c78eb721..2bbc84cc 100644 --- a/tests/ref/layout/grid-4.png +++ b/tests/ref/layout/grid-4.png diff --git a/tests/ref/layout/grid-5.png b/tests/ref/layout/grid-5.png Binary files differindex 8afe9446..532700b1 100644 --- a/tests/ref/layout/grid-5.png +++ b/tests/ref/layout/grid-5.png diff --git a/tests/ref/layout/hide.png b/tests/ref/layout/hide.png Binary files differnew file mode 100644 index 00000000..6450d669 --- /dev/null +++ b/tests/ref/layout/hide.png diff --git a/tests/ref/layout/locate-break.png b/tests/ref/layout/locate-break.png Binary files differdeleted file mode 100644 index 25abb4a0..00000000 --- a/tests/ref/layout/locate-break.png +++ /dev/null diff --git a/tests/ref/layout/locate-group.png b/tests/ref/layout/locate-group.png Binary files differdeleted file mode 100644 index c9fe4065..00000000 --- a/tests/ref/layout/locate-group.png +++ /dev/null diff --git a/tests/ref/layout/locate.png b/tests/ref/layout/locate.png Binary files differdeleted file mode 100644 index 015c5a6d..00000000 --- a/tests/ref/layout/locate.png +++ /dev/null diff --git a/tests/ref/layout/orphan-heading.png b/tests/ref/layout/orphan-heading.png Binary files differdeleted file mode 100644 index aa5a7838..00000000 --- a/tests/ref/layout/orphan-heading.png +++ /dev/null diff --git a/tests/ref/layout/orphan-widow.png b/tests/ref/layout/orphan-widow.png Binary files differdeleted file mode 100644 index 8fc523a6..00000000 --- a/tests/ref/layout/orphan-widow.png +++ /dev/null diff --git a/tests/ref/layout/page-margin.png b/tests/ref/layout/page-margin.png Binary files differindex 211f881c..6952189b 100644 --- a/tests/ref/layout/page-margin.png +++ b/tests/ref/layout/page-margin.png diff --git a/tests/ref/layout/page-style.png b/tests/ref/layout/page-style.png Binary files differindex 7132d20b..ac6b602c 100644 --- a/tests/ref/layout/page-style.png +++ b/tests/ref/layout/page-style.png diff --git a/tests/ref/layout/page.png b/tests/ref/layout/page.png Binary files differindex 35716e4d..4168d201 100644 --- a/tests/ref/layout/page.png +++ b/tests/ref/layout/page.png diff --git a/tests/ref/text/bidi.png b/tests/ref/layout/par-bidi.png Binary files differindex c9be82d4..c9be82d4 100644 --- a/tests/ref/text/bidi.png +++ b/tests/ref/layout/par-bidi.png diff --git a/tests/ref/layout/par-indent.png b/tests/ref/layout/par-indent.png Binary files differnew file mode 100644 index 00000000..7a0bd4b6 --- /dev/null +++ b/tests/ref/layout/par-indent.png diff --git a/tests/ref/text/justify.png b/tests/ref/layout/par-justify.png Binary files differindex e8b50723..e8b50723 100644 --- a/tests/ref/text/justify.png +++ b/tests/ref/layout/par-justify.png diff --git a/tests/ref/layout/par-knuth.png b/tests/ref/layout/par-knuth.png Binary files differnew file mode 100644 index 00000000..fca0892e --- /dev/null +++ b/tests/ref/layout/par-knuth.png diff --git a/tests/ref/layout/par-simple.png b/tests/ref/layout/par-simple.png Binary files differnew file mode 100644 index 00000000..92f98b36 --- /dev/null +++ b/tests/ref/layout/par-simple.png diff --git a/tests/ref/text/par.png b/tests/ref/layout/par.png Binary files differindex 199c8919..199c8919 100644 --- a/tests/ref/text/par.png +++ b/tests/ref/layout/par.png diff --git a/tests/ref/layout/repeat.png b/tests/ref/layout/repeat.png Binary files differnew file mode 100644 index 00000000..fcd52987 --- /dev/null +++ b/tests/ref/layout/repeat.png diff --git a/tests/ref/layout/stack-2.png b/tests/ref/layout/stack-2.png Binary files differindex 52b75bbd..af58d9c4 100644 --- a/tests/ref/layout/stack-2.png +++ b/tests/ref/layout/stack-2.png diff --git a/tests/ref/graphics/transform.png b/tests/ref/layout/transform.png Binary files differindex cb4b0af2..cb4b0af2 100644 --- a/tests/ref/graphics/transform.png +++ b/tests/ref/layout/transform.png diff --git a/tests/ref/layout/math.png b/tests/ref/math/simple.png Binary files differindex 902354df..902354df 100644 --- a/tests/ref/layout/math.png +++ b/tests/ref/math/simple.png diff --git a/tests/ref/meta/document.png b/tests/ref/meta/document.png Binary files differnew file mode 100644 index 00000000..bc0a95bf --- /dev/null +++ b/tests/ref/meta/document.png diff --git a/tests/ref/meta/link.png b/tests/ref/meta/link.png Binary files differnew file mode 100644 index 00000000..604e09d0 --- /dev/null +++ b/tests/ref/meta/link.png diff --git a/tests/ref/structure/desc.png b/tests/ref/structure/desc.png Binary files differdeleted file mode 100644 index e8b1d151..00000000 --- a/tests/ref/structure/desc.png +++ /dev/null diff --git a/tests/ref/structure/enum.png b/tests/ref/structure/enum.png Binary files differdeleted file mode 100644 index 39227b5b..00000000 --- a/tests/ref/structure/enum.png +++ /dev/null diff --git a/tests/ref/style/closure.png b/tests/ref/style/closure.png Binary files differdeleted file mode 100644 index 77d88d0c..00000000 --- a/tests/ref/style/closure.png +++ /dev/null diff --git a/tests/ref/text/baseline.png b/tests/ref/text/baseline.png Binary files differindex 37bb1949..f011c8c4 100644 --- a/tests/ref/text/baseline.png +++ b/tests/ref/text/baseline.png diff --git a/tests/ref/text/chinese.png b/tests/ref/text/chinese.png Binary files differindex aa8801c0..89ee357b 100644 --- a/tests/ref/text/chinese.png +++ b/tests/ref/text/chinese.png diff --git a/tests/ref/text/emph-strong.png b/tests/ref/text/emph-strong.png Binary files differdeleted file mode 100644 index cce98812..00000000 --- a/tests/ref/text/emph-strong.png +++ /dev/null diff --git a/tests/ref/text/emphasis.png b/tests/ref/text/emphasis.png Binary files differnew file mode 100644 index 00000000..c004421d --- /dev/null +++ b/tests/ref/text/emphasis.png diff --git a/tests/ref/text/features.png b/tests/ref/text/features.png Binary files differindex 36609d89..1c3b030c 100644 --- a/tests/ref/text/features.png +++ b/tests/ref/text/features.png diff --git a/tests/ref/text/hyphenate.png b/tests/ref/text/hyphenate.png Binary files differindex 47a8ffa5..e304cb8c 100644 --- a/tests/ref/text/hyphenate.png +++ b/tests/ref/text/hyphenate.png diff --git a/tests/ref/text/indent.png b/tests/ref/text/indent.png Binary files differdeleted file mode 100644 index 9cf2ace5..00000000 --- a/tests/ref/text/indent.png +++ /dev/null diff --git a/tests/ref/text/knuth.png b/tests/ref/text/knuth.png Binary files differdeleted file mode 100644 index 8595fe29..00000000 --- a/tests/ref/text/knuth.png +++ /dev/null diff --git a/tests/ref/text/link.png b/tests/ref/text/link.png Binary files differdeleted file mode 100644 index 9d5cb054..00000000 --- a/tests/ref/text/link.png +++ /dev/null diff --git a/tests/ref/text/microtype.png b/tests/ref/text/microtype.png Binary files differindex 7edc61cc..e0d149e6 100644 --- a/tests/ref/text/microtype.png +++ b/tests/ref/text/microtype.png diff --git a/tests/ref/text/plain.png b/tests/ref/text/plain.png Binary files differdeleted file mode 100644 index bfdf47a2..00000000 --- a/tests/ref/text/plain.png +++ /dev/null diff --git a/tests/ref/text/quotes.png b/tests/ref/text/quotes.png Binary files differindex 058055ae..1054daca 100644 --- a/tests/ref/text/quotes.png +++ b/tests/ref/text/quotes.png diff --git a/tests/ref/text/code.png b/tests/ref/text/raw-highlight.png Binary files differindex e0387870..e0387870 100644 --- a/tests/ref/text/code.png +++ b/tests/ref/text/raw-highlight.png diff --git a/tests/ref/text/raw.png b/tests/ref/text/raw.png Binary files differindex 3a7691fd..f7912051 100644 --- a/tests/ref/text/raw.png +++ b/tests/ref/text/raw.png diff --git a/tests/ref/text/repeat.png b/tests/ref/text/repeat.png Binary files differdeleted file mode 100644 index d7786bef..00000000 --- a/tests/ref/text/repeat.png +++ /dev/null diff --git a/tests/ref/text/shifts.png b/tests/ref/text/shift.png Binary files differindex 7e8d99a9..7e8d99a9 100644 --- a/tests/ref/text/shifts.png +++ b/tests/ref/text/shift.png diff --git a/tests/ref/text/space.png b/tests/ref/text/space.png Binary files differnew file mode 100644 index 00000000..09efda70 --- /dev/null +++ b/tests/ref/text/space.png diff --git a/tests/ref/text/tracking-spacing.png b/tests/ref/text/tracking-spacing.png Binary files differindex 69fc1eef..2ce0d549 100644 --- a/tests/ref/text/tracking-spacing.png +++ b/tests/ref/text/tracking-spacing.png diff --git a/tests/ref/text/whitespace.png b/tests/ref/text/whitespace.png Binary files differdeleted file mode 100644 index 9a1ed3cd..00000000 --- a/tests/ref/text/whitespace.png +++ /dev/null diff --git a/tests/ref/graphics/image.png b/tests/ref/visualize/image.png Binary files differindex a89f1963..a89f1963 100644 --- a/tests/ref/graphics/image.png +++ b/tests/ref/visualize/image.png diff --git a/tests/ref/graphics/line.png b/tests/ref/visualize/line.png Binary files differindex 4a73ccd7..4a73ccd7 100644 --- a/tests/ref/graphics/line.png +++ b/tests/ref/visualize/line.png diff --git a/tests/ref/graphics/shape-aspect.png b/tests/ref/visualize/shape-aspect.png Binary files differindex a8e458fb..a8e458fb 100644 --- a/tests/ref/graphics/shape-aspect.png +++ b/tests/ref/visualize/shape-aspect.png diff --git a/tests/ref/visualize/shape-circle.png b/tests/ref/visualize/shape-circle.png Binary files differnew file mode 100644 index 00000000..6cbbc0e3 --- /dev/null +++ b/tests/ref/visualize/shape-circle.png diff --git a/tests/ref/visualize/shape-ellipse.png b/tests/ref/visualize/shape-ellipse.png Binary files differnew file mode 100644 index 00000000..50467dce --- /dev/null +++ b/tests/ref/visualize/shape-ellipse.png diff --git a/tests/ref/visualize/shape-fill-stroke.png b/tests/ref/visualize/shape-fill-stroke.png Binary files differnew file mode 100644 index 00000000..b8c78a55 --- /dev/null +++ b/tests/ref/visualize/shape-fill-stroke.png diff --git a/tests/ref/visualize/shape-rect.png b/tests/ref/visualize/shape-rect.png Binary files differnew file mode 100644 index 00000000..b3311ba5 --- /dev/null +++ b/tests/ref/visualize/shape-rect.png diff --git a/tests/ref/visualize/shape-square.png b/tests/ref/visualize/shape-square.png Binary files differnew file mode 100644 index 00000000..1f5303b9 --- /dev/null +++ b/tests/ref/visualize/shape-square.png diff --git a/tests/src/benches.rs b/tests/src/benches.rs index 1ae012eb..4cd7d9c3 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -10,7 +10,7 @@ use typst::util::Buffer; use typst::World; use unscanny::Scanner; -const TEXT: &str = include_str!("../typ/benches/bench.typ"); +const TEXT: &str = include_str!("../typ/compiler/bench.typ"); const FONT: &[u8] = include_bytes!("../fonts/IBMPlexSans-Regular.ttf"); main!( @@ -111,7 +111,7 @@ impl BenchWorld { let book = FontBook::from_fonts([&font]); Self { - library: Prehashed::new(typst_library::new()), + library: Prehashed::new(typst_library::build()), book: Prehashed::new(book), font, source: Source::detached(TEXT), diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 215d7fe7..e7c630f6 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -145,7 +145,7 @@ impl Args { } fn library() -> Library { - let mut lib = typst_library::new(); + let mut lib = typst_library::build(); // Set page width to 120pt with 10pt margins, so that the inner page is // exactly 100pt wide. Page height is unbounded and font size is 10pt so diff --git a/tests/typ/base/assert.typ b/tests/typ/base/assert.typ deleted file mode 100644 index b0c8aafd..00000000 --- a/tests/typ/base/assert.typ +++ /dev/null @@ -1,23 +0,0 @@ -// Test the `assert` function. -// Ref: false - ---- -#assert(1 + 1 == 2) -#assert(range(2, 5) == (2, 3, 4)) -#assert(not false) - ---- -// Test failing assertions. -// Error: 9-15 assertion failed -#assert(1 == 2) - ---- -// Test failing assertions. -// Error: 9-15 expected boolean, found string -#assert("true") - ---- -// Test the `type` function. -#test(type(1), "integer") -#test(type(ltr), "direction") -#test(type(10 / 3), "float") diff --git a/tests/typ/base/numbering.typ b/tests/typ/base/numbering.typ deleted file mode 100644 index 200850bc..00000000 --- a/tests/typ/base/numbering.typ +++ /dev/null @@ -1,13 +0,0 @@ -// Test integrated numbering patterns. - ---- -#for i in range(9) { - numbering(i, "* and ") - numbering(i, "I") - [ for #i] - parbreak() -} - ---- -// Error: 12-14 must be at least zero -#numbering(-1, "1") diff --git a/tests/typ/base/type.typ b/tests/typ/base/type.typ deleted file mode 100644 index 37cf8623..00000000 --- a/tests/typ/base/type.typ +++ /dev/null @@ -1,7 +0,0 @@ -// Test the `type` function. -// Ref: false - ---- -#test(type(1), "integer") -#test(type(ltr), "direction") -#test(type(10 / 3), "float") diff --git a/tests/typ/structure/desc.typ b/tests/typ/basics/desc.typ index 1bc92625..1bc92625 100644 --- a/tests/typ/structure/desc.typ +++ b/tests/typ/basics/desc.typ diff --git a/tests/typ/structure/enum.typ b/tests/typ/basics/enum.typ index d4c30385..d4c30385 100644 --- a/tests/typ/structure/enum.typ +++ b/tests/typ/basics/enum.typ diff --git a/tests/typ/structure/heading.typ b/tests/typ/basics/heading.typ index 9fd4e648..9fd4e648 100644 --- a/tests/typ/structure/heading.typ +++ b/tests/typ/basics/heading.typ diff --git a/tests/typ/structure/attach.typ b/tests/typ/basics/list-attach.typ index 9d043eb0..9d043eb0 100644 --- a/tests/typ/structure/attach.typ +++ b/tests/typ/basics/list-attach.typ diff --git a/tests/typ/structure/list.typ b/tests/typ/basics/list.typ index 9ed5993a..9ed5993a 100644 --- a/tests/typ/structure/list.typ +++ b/tests/typ/basics/list.typ diff --git a/tests/typ/structure/table.typ b/tests/typ/basics/table.typ index 527141c5..527141c5 100644 --- a/tests/typ/structure/table.typ +++ b/tests/typ/basics/table.typ diff --git a/tests/typ/code/array.typ b/tests/typ/compiler/array.typ index cb8433cb..cb8433cb 100644 --- a/tests/typ/code/array.typ +++ b/tests/typ/compiler/array.typ diff --git a/tests/typ/benches/bench.typ b/tests/typ/compiler/bench.typ index 6aff1ac2..6aff1ac2 100644 --- a/tests/typ/benches/bench.typ +++ b/tests/typ/compiler/bench.typ diff --git a/tests/typ/code/block.typ b/tests/typ/compiler/block.typ index d82d497f..45f63f8e 100644 --- a/tests/typ/code/block.typ +++ b/tests/typ/compiler/block.typ @@ -79,7 +79,7 @@ --- // Double block creates a scope. {{ - import b from "target.typ" + import b from "module.typ" test(b, 1) }} diff --git a/tests/typ/code/break-continue.typ b/tests/typ/compiler/break-continue.typ index fb3222fa..fb3222fa 100644 --- a/tests/typ/code/break-continue.typ +++ b/tests/typ/compiler/break-continue.typ diff --git a/tests/typ/code/call.typ b/tests/typ/compiler/call.typ index dc582c9c..dc582c9c 100644 --- a/tests/typ/code/call.typ +++ b/tests/typ/compiler/call.typ diff --git a/tests/typ/code/closure.typ b/tests/typ/compiler/closure.typ index e9389e13..2c6c1ea0 100644 --- a/tests/typ/code/closure.typ +++ b/tests/typ/compiler/closure.typ @@ -60,7 +60,7 @@ --- // Import bindings. { - let b = "target.typ" + let b = "module.typ" let f() = { import b from b b diff --git a/tests/typ/code/comment.typ b/tests/typ/compiler/comment.typ index 4a4dc7ab..4a4dc7ab 100644 --- a/tests/typ/code/comment.typ +++ b/tests/typ/compiler/comment.typ diff --git a/tests/typ/style/construct.typ b/tests/typ/compiler/construct.typ index f535184c..f535184c 100644 --- a/tests/typ/style/construct.typ +++ b/tests/typ/compiler/construct.typ diff --git a/tests/typ/code/dict.typ b/tests/typ/compiler/dict.typ index d791f77b..d791f77b 100644 --- a/tests/typ/code/dict.typ +++ b/tests/typ/compiler/dict.typ diff --git a/tests/typ/code/field.typ b/tests/typ/compiler/field.typ index abea87fb..abea87fb 100644 --- a/tests/typ/code/field.typ +++ b/tests/typ/compiler/field.typ diff --git a/tests/typ/code/for.typ b/tests/typ/compiler/for.typ index 822f7423..822f7423 100644 --- a/tests/typ/code/for.typ +++ b/tests/typ/compiler/for.typ diff --git a/tests/typ/code/if.typ b/tests/typ/compiler/if.typ index 0d87c689..0d87c689 100644 --- a/tests/typ/code/if.typ +++ b/tests/typ/compiler/if.typ diff --git a/tests/typ/code/import.typ b/tests/typ/compiler/import.typ index 5291af39..0620403d 100644 --- a/tests/typ/code/import.typ +++ b/tests/typ/compiler/import.typ @@ -4,45 +4,45 @@ // Test importing semantics. // A named import. -#import item from "target.typ" +#import item from "module.typ" #test(item(1, 2), 3) // Test that this will be overwritten. #let value = [foo] // Import multiple things. -#import fn, value from "target.typ" +#import fn, value from "module.typ" #fn[Like and Subscribe!] #value // Code mode { - import b from "target.typ" + import b from "module.typ" test(b, 1) } // A wildcard import. -#import * from "target.typ" +#import * from "module.typ" // It exists now! #d // Who needs whitespace anyways? -#import*from"target.typ" +#import*from"module.typ" // Should output `bye`. // Stop at semicolon. -#import a, c from "target.typ";bye +#import a, c from "module.typ";bye // Allow the trailing comma. -#import a, c, from "target.typ" +#import a, c, from "module.typ" --- // Error: 19-21 failed to load file (is a directory) #import name from "" --- -// Error: 16-27 file not found (searched at typ/code/lib/0.2.1) +// Error: 16-27 file not found (searched at typ/compiler/lib/0.2.1) #import * from "lib/0.2.1" --- @@ -53,7 +53,7 @@ --- // Unresolved import. // Error: 9-21 unresolved import -#import non_existing from "target.typ" +#import non_existing from "module.typ" --- // Cyclic import of this very file. @@ -62,7 +62,7 @@ --- // Cyclic import in other file. -#import * from "./importable/cycle1.typ" +#import * from "./modules/cycle1.typ" This is never reached. @@ -80,36 +80,36 @@ This is never reached. #import afrom, "b", c // Error: 9 expected import items -#import from "target.typ" +#import from "module.typ" // Error: 9-10 expected expression, found assignment operator // Error: 10 expected import items -#import = from "target.typ" +#import = from "module.typ" // Error: 15 expected expression #import * from // An additional trailing comma. // Error: 17-18 expected expression, found comma -#import a, b, c,, from "target.typ" +#import a, b, c,, from "module.typ" // Error: 1-6 unexpected keyword `from` -#from "target.typ" +#from "module.typ" // Error: 2:2 expected semicolon or line break -#import * from "target.typ +#import * from "module.typ "target // Error: 28 expected semicolon or line break -#import * from "target.typ" § 0.2.1 +#import * from "module.typ" § 0.2.1 // A star in the list. // Error: 12-13 expected expression, found star -#import a, *, b from "target.typ" +#import a, *, b from "module.typ" // An item after a star. // Error: 10 expected keyword `from` -#import *, a from "target.typ" +#import *, a from "module.typ" --- // Error: 9-13 expected identifier, found named pair diff --git a/tests/typ/code/include.typ b/tests/typ/compiler/include.typ index e862adac..289fea21 100644 --- a/tests/typ/code/include.typ +++ b/tests/typ/compiler/include.typ @@ -6,22 +6,22 @@ = Document // Include a file -#include "/typ/code/importable/chap1.typ" +#include "/typ/compiler/modules/chap1.typ" // Expression as a file name. -#let chap2 = include "import" + "able/chap" + "2.typ" +#let chap2 = include "modu" + "les/chap" + "2.typ" -- _Intermission_ -- #chap2 --- { - // Error: 19-41 file not found (searched at typ/code/importable/chap3.typ) - let x = include "importable/chap3.typ" + // Error: 19-38 file not found (searched at typ/compiler/modules/chap3.typ) + let x = include "modules/chap3.typ" } --- -#include "importable/chap1.typ" +#include "modules/chap1.typ" // The variables of the file should not appear in this scope. // Error: 1-6 unknown variable diff --git a/tests/typ/style/label.typ b/tests/typ/compiler/label.typ index 795c0435..795c0435 100644 --- a/tests/typ/style/label.typ +++ b/tests/typ/compiler/label.typ diff --git a/tests/typ/code/let.typ b/tests/typ/compiler/let.typ index c3be64a5..c3be64a5 100644 --- a/tests/typ/code/let.typ +++ b/tests/typ/compiler/let.typ diff --git a/tests/typ/base/collection.typ b/tests/typ/compiler/methods-collection.typ index 46ff97ab..fcebf640 100644 --- a/tests/typ/base/collection.typ +++ b/tests/typ/compiler/methods-collection.typ @@ -1,4 +1,4 @@ -// Test collection functions. +// Test the collection methods. // Ref: false --- diff --git a/tests/typ/compiler/methods-color.typ b/tests/typ/compiler/methods-color.typ new file mode 100644 index 00000000..1188030a --- /dev/null +++ b/tests/typ/compiler/methods-color.typ @@ -0,0 +1,22 @@ +// Test color modification methods. + +--- +// Test gray color modification. +#test(luma(20%).lighten(50%), luma(60%)) +#test(luma(80%).darken(20%), luma(63.9%)) +#test(luma(80%).negate(), luma(20%)) + +--- +// Test CMYK color conversion. +// Ref: true +#let c = cmyk(50%, 64%, 16%, 17%) +#rect(width: 1cm, fill: cmyk(69%, 11%, 69%, 41%)) +#rect(width: 1cm, fill: c) +#rect(width: 1cm, fill: c.negate()) + +#for x in range(0, 11) { + square(width: 9pt, fill: c.lighten(x * 10%)) +} +#for x in range(0, 11) { + square(width: 9pt, fill: c.darken(x * 10%)) +} diff --git a/tests/typ/base/string.typ b/tests/typ/compiler/methods-str.typ index e724f563..aead4aa4 100644 --- a/tests/typ/base/string.typ +++ b/tests/typ/compiler/methods-str.typ @@ -1,19 +1,7 @@ -// Test string related methods. +// Test the string methods. // Ref: false --- -// Test conversion to string. -#test(str(123), "123") -#test(str(50.14), "50.14") -#test(str(10 / 3).len() > 10, true) -#test(repr(ltr), "ltr") -#test(repr((1, 2, false, )), "(1, 2, false)") - ---- -// Error: 6-8 cannot convert content to string -#str([]) - ---- // Test the `slice` method. #test("abc".slice(1, 2), "b") #test("abc🏡def".slice(2, 7), "c🏡") @@ -127,14 +115,3 @@ #test("abc".split("b"), ("a", "c")) #test("a123c".split(regex("\d")), ("a", "", "", "c")) #test("a123c".split(regex("\d+")), ("a", "c")) - ---- -// Test the `upper` and `lower` functions. -#let memes = "ArE mEmEs gReAt?"; -#test(lower(memes), "are memes great?") -#test(upper(memes), "ARE MEMES GREAT?") -#test(upper("Ελλάδα"), "ΕΛΛΆΔΑ") - ---- -// Error: 8-9 expected string or content, found integer -#upper(1) diff --git a/tests/typ/code/methods.typ b/tests/typ/compiler/methods.typ index f5db8ca0..07f6e410 100644 --- a/tests/typ/code/methods.typ +++ b/tests/typ/compiler/methods.typ @@ -43,8 +43,4 @@ --- // Error: 3-6 cannot mutate a constant -{ box = 1 } - ---- -// Error: 3-6 cannot mutate a constant { box.push(1) } diff --git a/tests/typ/code/target.typ b/tests/typ/compiler/module.typ index b0a3fbf3..b0a3fbf3 100644 --- a/tests/typ/code/target.typ +++ b/tests/typ/compiler/module.typ diff --git a/tests/typ/code/importable/chap1.typ b/tests/typ/compiler/modules/chap1.typ index 06a4c1a1..06a4c1a1 100644 --- a/tests/typ/code/importable/chap1.typ +++ b/tests/typ/compiler/modules/chap1.typ diff --git a/tests/typ/code/importable/chap2.typ b/tests/typ/compiler/modules/chap2.typ index d4aedc60..d4aedc60 100644 --- a/tests/typ/code/importable/chap2.typ +++ b/tests/typ/compiler/modules/chap2.typ diff --git a/tests/typ/code/importable/cycle1.typ b/tests/typ/compiler/modules/cycle1.typ index a9c00f5e..a9c00f5e 100644 --- a/tests/typ/code/importable/cycle1.typ +++ b/tests/typ/compiler/modules/cycle1.typ diff --git a/tests/typ/code/importable/cycle2.typ b/tests/typ/compiler/modules/cycle2.typ index 204da519..204da519 100644 --- a/tests/typ/code/importable/cycle2.typ +++ b/tests/typ/compiler/modules/cycle2.typ diff --git a/tests/typ/code/ops-assoc.typ b/tests/typ/compiler/ops-assoc.typ index ec128c61..ec128c61 100644 --- a/tests/typ/code/ops-assoc.typ +++ b/tests/typ/compiler/ops-assoc.typ diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/compiler/ops-invalid.typ index 3e9e5478..3e9e5478 100644 --- a/tests/typ/code/ops-invalid.typ +++ b/tests/typ/compiler/ops-invalid.typ diff --git a/tests/typ/code/ops-prec.typ b/tests/typ/compiler/ops-prec.typ index 23afcc5f..23afcc5f 100644 --- a/tests/typ/code/ops-prec.typ +++ b/tests/typ/compiler/ops-prec.typ diff --git a/tests/typ/code/ops.typ b/tests/typ/compiler/ops.typ index c382f34d..a38a527c 100644 --- a/tests/typ/code/ops.typ +++ b/tests/typ/compiler/ops.typ @@ -189,6 +189,10 @@ { x += "thing" } #test(x, "something") --- +// Error: 3-6 cannot mutate a constant +{ box = 1 } + +--- // Test `in` operator. #test("hi" in "worship", true) #test("hi" in ("we", "hi", "bye"), true) diff --git a/tests/typ/code/repr.typ b/tests/typ/compiler/repr.typ index bdea9c82..bdea9c82 100644 --- a/tests/typ/code/repr.typ +++ b/tests/typ/compiler/repr.typ diff --git a/tests/typ/code/return.typ b/tests/typ/compiler/return.typ index 0eea394e..0eea394e 100644 --- a/tests/typ/code/return.typ +++ b/tests/typ/compiler/return.typ diff --git a/tests/typ/style/set.typ b/tests/typ/compiler/set.typ index fc5053b1..fc5053b1 100644 --- a/tests/typ/style/set.typ +++ b/tests/typ/compiler/set.typ diff --git a/tests/typ/text/shorthands.typ b/tests/typ/compiler/shorthand.typ index 5c94dab0..5c94dab0 100644 --- a/tests/typ/text/shorthands.typ +++ b/tests/typ/compiler/shorthand.typ diff --git a/tests/typ/style/show-bare.typ b/tests/typ/compiler/show-bare.typ index 8b8d0852..8b8d0852 100644 --- a/tests/typ/style/show-bare.typ +++ b/tests/typ/compiler/show-bare.typ diff --git a/tests/typ/style/show-node.typ b/tests/typ/compiler/show-node.typ index 98f36f13..98f36f13 100644 --- a/tests/typ/style/show-node.typ +++ b/tests/typ/compiler/show-node.typ diff --git a/tests/typ/style/show-recursive.typ b/tests/typ/compiler/show-recursive.typ index 91a295f2..91a295f2 100644 --- a/tests/typ/style/show-recursive.typ +++ b/tests/typ/compiler/show-recursive.typ diff --git a/tests/typ/style/show-selector.typ b/tests/typ/compiler/show-selector.typ index 0e9823a5..0e9823a5 100644 --- a/tests/typ/style/show-selector.typ +++ b/tests/typ/compiler/show-selector.typ diff --git a/tests/typ/style/show-text.typ b/tests/typ/compiler/show-text.typ index 124d2ed2..124d2ed2 100644 --- a/tests/typ/style/show-text.typ +++ b/tests/typ/compiler/show-text.typ diff --git a/tests/typ/code/spread.typ b/tests/typ/compiler/spread.typ index ff661ead..ff661ead 100644 --- a/tests/typ/code/spread.typ +++ b/tests/typ/compiler/spread.typ diff --git a/tests/typ/code/while.typ b/tests/typ/compiler/while.typ index 5dc5ae41..5dc5ae41 100644 --- a/tests/typ/code/while.typ +++ b/tests/typ/compiler/while.typ diff --git a/tests/typ/base/calc.typ b/tests/typ/compute/calc.typ index 4ccefa22..4ccefa22 100644 --- a/tests/typ/base/calc.typ +++ b/tests/typ/compute/calc.typ diff --git a/tests/typ/base/color.typ b/tests/typ/compute/create.typ index aecd86b8..462f06e9 100644 --- a/tests/typ/base/color.typ +++ b/tests/typ/compute/create.typ @@ -1,4 +1,4 @@ -// Test color creation functions and modification methods. +// Test creation and conversion functions. // Ref: false --- @@ -21,27 +21,6 @@ #rect(fill: luma(80%)) --- -// Test gray color modification. -#test(luma(20%).lighten(50%), luma(60%)) -#test(luma(80%).darken(20%), luma(63.9%)) -#test(luma(80%).negate(), luma(20%)) - ---- -// Test CMYK color conversion. -// Ref: true -#let c = cmyk(50%, 64%, 16%, 17%) -#rect(width: 1cm, fill: cmyk(69%, 11%, 69%, 41%)) -#rect(width: 1cm, fill: c) -#rect(width: 1cm, fill: c.negate()) - -#for x in range(0, 11) { - square(width: 9pt, fill: c.lighten(x * 10%)) -} -#for x in range(0, 11) { - square(width: 9pt, fill: c.darken(x * 10%)) -} - ---- // Error for values that are out of range. // Error: 11-14 must be between 0 and 255 #test(rgb(-30, 15, 50)) @@ -61,3 +40,16 @@ --- // Error: 21-26 expected integer or ratio, found boolean #rgb(10%, 20%, 30%, false) + +--- +// Test conversion to string. +#test(str(123), "123") +#test(str(50.14), "50.14") +#test(str(10 / 3).len() > 10, true) + +--- +// Error: 6-8 cannot convert content to string +#str([]) + +--- +#assert(range(2, 5) == (2, 3, 4)) diff --git a/tests/typ/base/data.typ b/tests/typ/compute/data.typ index 96b12ff5..c1def7d5 100644 --- a/tests/typ/base/data.typ +++ b/tests/typ/compute/data.typ @@ -10,7 +10,7 @@ #table(columns: data(0).len(), ..cells) --- -// Error: 6-16 file not found (searched at typ/base/nope.csv) +// Error: 6-16 file not found (searched at typ/compute/nope.csv) #csv("nope.csv") --- diff --git a/tests/typ/base/eval.typ b/tests/typ/compute/foundations.typ index 80235c0c..6fc93a75 100644 --- a/tests/typ/base/eval.typ +++ b/tests/typ/compute/foundations.typ @@ -1,4 +1,30 @@ -// Test the `eval` function. +// Test foundational functions. +// Ref: false + +--- +#test(type(1), "integer") +#test(type(ltr), "direction") +#test(type(10 / 3), "float") + +--- +#test(repr(ltr), "ltr") +#test(repr((1, 2, false, )), "(1, 2, false)") + +--- +// Test failing assertions. +// Error: 9-15 assertion failed +#assert(1 == 2) + +--- +// Test failing assertions. +// Error: 9-15 expected boolean, found string +#assert("true") + +--- +// Test the `type` function. +#test(type(1), "integer") +#test(type(ltr), "direction") +#test(type(10 / 3), "float") --- #eval("_Hello" + " World!_") diff --git a/tests/typ/base/blind.typ b/tests/typ/compute/utility.typ index 17452dec..f042c769 100644 --- a/tests/typ/base/blind.typ +++ b/tests/typ/compute/utility.typ @@ -1,4 +1,4 @@ -// Test blind text. +// Test integrated numbering patterns. --- // Test basic call. @@ -30,3 +30,15 @@ --- // Error: 7-9 missing argument: number of words #lorem() + +--- +#for i in range(9) { + numbering(i, "* and ") + numbering(i, "I") + [ for #i] + parbreak() +} + +--- +// Error: 12-14 must be at least zero +#numbering(-1, "1") diff --git a/tests/typ/layout/orphan-widow.typ b/tests/typ/layout/flow-orphan.typ index 445b44e3..a51da2b2 100644 --- a/tests/typ/layout/orphan-widow.typ +++ b/tests/typ/layout/flow-orphan.typ @@ -1,4 +1,11 @@ -// Test widow and orphan prevention. +// Test that a heading doesn't become an orphan. + +--- +#set page(height: 100pt) +#lorem(12) + += Introduction +This is the start and it goes on. --- #set page("a8", height: 150pt) diff --git a/tests/typ/graphics/hide.typ b/tests/typ/layout/hide.typ index a979b24f..a979b24f 100644 --- a/tests/typ/graphics/hide.typ +++ b/tests/typ/layout/hide.typ diff --git a/tests/typ/layout/orphan-heading.typ b/tests/typ/layout/orphan-heading.typ deleted file mode 100644 index ef3de885..00000000 --- a/tests/typ/layout/orphan-heading.typ +++ /dev/null @@ -1,8 +0,0 @@ -// Test that a heading doesn't become an orphan. - ---- -#set page(height: 100pt) -#lorem(12) - -= Introduction -This is the start and it goes on. diff --git a/tests/typ/text/bidi.typ b/tests/typ/layout/par-bidi.typ index 11c0cafa..11c0cafa 100644 --- a/tests/typ/text/bidi.typ +++ b/tests/typ/layout/par-bidi.typ diff --git a/tests/typ/text/indent.typ b/tests/typ/layout/par-indent.typ index 8454dda5..8454dda5 100644 --- a/tests/typ/text/indent.typ +++ b/tests/typ/layout/par-indent.typ diff --git a/tests/typ/text/justify.typ b/tests/typ/layout/par-justify.typ index e3d61322..e3d61322 100644 --- a/tests/typ/text/justify.typ +++ b/tests/typ/layout/par-justify.typ diff --git a/tests/typ/text/knuth.typ b/tests/typ/layout/par-knuth.typ index 59349738..59349738 100644 --- a/tests/typ/text/knuth.typ +++ b/tests/typ/layout/par-knuth.typ diff --git a/tests/typ/text/plain.typ b/tests/typ/layout/par-simple.typ index 34a2d626..34a2d626 100644 --- a/tests/typ/text/plain.typ +++ b/tests/typ/layout/par-simple.typ diff --git a/tests/typ/text/par.typ b/tests/typ/layout/par.typ index 558059e9..558059e9 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/layout/par.typ diff --git a/tests/typ/text/repeat.typ b/tests/typ/layout/repeat.typ index 13e99b51..13e99b51 100644 --- a/tests/typ/text/repeat.typ +++ b/tests/typ/layout/repeat.typ diff --git a/tests/typ/graphics/transform.typ b/tests/typ/layout/transform.typ index 2dde626b..2dde626b 100644 --- a/tests/typ/graphics/transform.typ +++ b/tests/typ/layout/transform.typ diff --git a/tests/typ/layout/math.typ b/tests/typ/math/simple.typ index 55a853cf..55a853cf 100644 --- a/tests/typ/layout/math.typ +++ b/tests/typ/math/simple.typ diff --git a/tests/typ/style/document.typ b/tests/typ/meta/document.typ index 1fcb8109..1fcb8109 100644 --- a/tests/typ/style/document.typ +++ b/tests/typ/meta/document.typ diff --git a/tests/typ/text/link.typ b/tests/typ/meta/link.typ index 8c3e6ddd..8c3e6ddd 100644 --- a/tests/typ/text/link.typ +++ b/tests/typ/meta/link.typ diff --git a/tests/typ/text/case.typ b/tests/typ/text/case.typ new file mode 100644 index 00000000..75574f21 --- /dev/null +++ b/tests/typ/text/case.typ @@ -0,0 +1,12 @@ +// Test the `upper` and `lower` functions. +// Ref: false + +--- +#let memes = "ArE mEmEs gReAt?"; +#test(lower(memes), "are memes great?") +#test(upper(memes), "ARE MEMES GREAT?") +#test(upper("Ελλάδα"), "ΕΛΛΆΔΑ") + +--- +// Error: 8-9 expected string or content, found integer +#upper(1) diff --git a/tests/typ/text/emph-strong.typ b/tests/typ/text/emphasis.typ index cd2191cc..cd2191cc 100644 --- a/tests/typ/text/emph-strong.typ +++ b/tests/typ/text/emphasis.typ diff --git a/tests/typ/text/code.typ b/tests/typ/text/raw-highlight.typ index d89f1c05..d89f1c05 100644 --- a/tests/typ/text/code.typ +++ b/tests/typ/text/raw-highlight.typ diff --git a/tests/typ/text/shifts.typ b/tests/typ/text/shift.typ index 01a83f6e..01a83f6e 100644 --- a/tests/typ/text/shifts.typ +++ b/tests/typ/text/shift.typ diff --git a/tests/typ/text/whitespace.typ b/tests/typ/text/space.typ index 8dcc59e3..8dcc59e3 100644 --- a/tests/typ/text/whitespace.typ +++ b/tests/typ/text/space.typ diff --git a/tests/typ/graphics/image.typ b/tests/typ/visualize/image.typ index e97365cd..6a2c37e1 100644 --- a/tests/typ/graphics/image.typ +++ b/tests/typ/visualize/image.typ @@ -51,7 +51,7 @@ A #image("/res/tiger.jpg", height: 1cm, width: 80%) B #image("/res/pattern.svg") --- -// Error: 8-29 file not found (searched at typ/graphics/path/does/not/exist) +// Error: 8-29 file not found (searched at typ/visualize/path/does/not/exist) #image("path/does/not/exist") --- diff --git a/tests/typ/graphics/line.typ b/tests/typ/visualize/line.typ index 2cb2fc9c..2cb2fc9c 100644 --- a/tests/typ/graphics/line.typ +++ b/tests/typ/visualize/line.typ diff --git a/tests/typ/graphics/shape-aspect.typ b/tests/typ/visualize/shape-aspect.typ index f2dd9b51..f2dd9b51 100644 --- a/tests/typ/graphics/shape-aspect.typ +++ b/tests/typ/visualize/shape-aspect.typ diff --git a/tests/typ/graphics/shape-circle.typ b/tests/typ/visualize/shape-circle.typ index 13ff67de..13ff67de 100644 --- a/tests/typ/graphics/shape-circle.typ +++ b/tests/typ/visualize/shape-circle.typ diff --git a/tests/typ/graphics/shape-ellipse.typ b/tests/typ/visualize/shape-ellipse.typ index ba4d0d0a..ba4d0d0a 100644 --- a/tests/typ/graphics/shape-ellipse.typ +++ b/tests/typ/visualize/shape-ellipse.typ diff --git a/tests/typ/graphics/shape-fill-stroke.typ b/tests/typ/visualize/shape-fill-stroke.typ index d14d0981..d14d0981 100644 --- a/tests/typ/graphics/shape-fill-stroke.typ +++ b/tests/typ/visualize/shape-fill-stroke.typ diff --git a/tests/typ/graphics/shape-rect.typ b/tests/typ/visualize/shape-rect.typ index 94686da2..94686da2 100644 --- a/tests/typ/graphics/shape-rect.typ +++ b/tests/typ/visualize/shape-rect.typ diff --git a/tests/typ/graphics/shape-square.typ b/tests/typ/visualize/shape-square.typ index 622fa9c8..622fa9c8 100644 --- a/tests/typ/graphics/shape-square.typ +++ b/tests/typ/visualize/shape-square.typ |
