From ec5dcb31cab9d65708b293bbf5eccd1fb43aef99 Mon Sep 17 00:00:00 2001 From: Johannes Wolf Date: Tue, 27 Jan 2026 13:39:39 +0100 Subject: [PATCH] tests: Restructure Tests fixes #815 --- .../centroid}/ref/1.png | Bin .../centroid}/test.typ | 0 .../{local-anchor => anchor/local}/ref/1.png | Bin tests/{local-anchor => anchor/local}/test.typ | 0 .../previous/position}/ref/1.png | Bin .../previous/position}/test.typ | 0 tests/{arc-through => arc/through}/ref/1.png | Bin tests/{arc-through => arc/through}/test.typ | 0 tests/bezier/{ => base}/ref/1.png | Bin tests/bezier/{ => base}/test.typ | 0 .../shortening}/ref/1.png | Bin .../shortening}/test.typ | 0 .../through}/ref/1.png | Bin .../through}/test.typ | 0 tests/circle/{ => base}/ref/1.png | Bin tests/circle/{ => base}/test.typ | 0 .../through}/ref/1.png | Bin .../through}/test.typ | 0 tests/{copy-anchor => copy/anchor}/ref/1.png | Bin tests/{copy-anchor => copy/anchor}/test.typ | 0 tests/{custom-mark => custom/mark}/ref/1.png | Bin tests/{custom-mark => custom/mark}/test.typ | 0 .../anchors}/ref.png | Bin .../anchors}/ref/1.png | Bin .../anchors}/test.typ | 0 tests/{empty-group => empty/base}/ref/1.png | Bin tests/empty/{ => base}/test.typ | 0 tests/empty/{ => group}/ref/1.png | Bin tests/{empty-group => empty/group}/test.typ | 0 .../anchors}/ref/1.png | Bin .../{group-anchors => group/anchors}/test.typ | 0 .../nested/anchors}/ref/1.png | Bin .../nested/anchors}/test.typ | 0 tests/{group-none => group/none}/ref.png | Bin tests/{group-none => group/none}/ref/1.png | Bin tests/{group-none => group/none}/test.typ | 0 .../padding}/ref/1.png | Bin .../{group-padding => group/padding}/test.typ | 0 .../transform}/ref/1.png | Bin .../transform}/test.typ | 0 .../translate}/ref/1.png | Bin .../translate}/test.typ | 0 .../element/element/intersection}/ref.png | Bin .../element/element/intersection}/ref/1.png | Bin .../element/element/intersection}/test.typ | 0 .../fill/rule}/ref/1.png | Bin .../fill/rule}/test.typ | 0 .../{mark-anchors => mark/anchors}/ref/1.png | Bin tests/{mark-anchors => mark/anchors}/test.typ | 0 .../auto/offset}/ref/1.png | Bin .../auto/offset}/test.typ | 0 .../position}/ref/1.png | Bin .../{mark-position => mark/position}/test.typ | 0 .../shape/transform}/ref/1.png | Bin .../shape/transform}/test.typ | 0 tests/{mark-single => mark/single}/ref.png | Bin tests/{mark-single => mark/single}/ref/1.png | Bin tests/{mark-single => mark/single}/test.typ | 0 tests/{mark-z-axis => mark/z/axis}/ref/1.png | Bin tests/{mark-z-axis => mark/z/axis}/test.typ | 0 .../marks}/ref/1.png | Bin .../marks}/test.typ | 0 tests/{path-anchors => path/anchors}/ref.png | Bin .../{path-anchors => path/anchors}/ref/1.png | Bin tests/{path-anchors => path/anchors}/test.typ | 0 .../decoration}/ref/1.png | Bin .../decoration}/test.typ | 0 .../default}/ref/1.png | Bin .../default}/test.typ | 0 .../ortho}/ref/1.png | Bin .../ortho}/test.typ | 0 .../around/base}/ref/1.png | Bin .../around/base}/test.typ | 0 .../around/padded}/ref/1.png | Bin .../around/padded}/test.typ | 0 tests/rect/{ => base}/ref/1.png | Bin tests/rect/{ => base}/test.typ | 0 .../{rect-rounded => rect/rounded}/ref/1.png | Bin tests/{rect-rounded => rect/rounded}/test.typ | 0 .../length}/ref/1.png | Bin .../length}/test.typ | 0 .../no/update}/ref/1.png | Bin .../no/update}/test.typ | 0 tests/{right-angle => right/angle}/ref/1.png | Bin tests/{right-angle => right/angle}/test.typ | 0 tests/{root-anchor => root/anchor}/ref/1.png | Bin tests/{root-anchor => root/anchor}/test.typ | 0 .../around}/ref/1.png | Bin .../{rotate-around => rotate/around}/test.typ | 0 tests/{set-get-ctx => set/get/ctx}/ref/1.png | Bin tests/{set-get-ctx => set/get/ctx}/test.typ | 0 tests/style/inheritance/self/ref/1.png | Bin 1738 -> 0 bytes tests/style/inheritance/self/test.typ | 56 ------------------ tests/style/inheritance/{base => }/test.typ | 53 +++++++++++++++++ .../precission}/ref/1.png | Bin .../precission}/test.typ | 0 96 files changed, 53 insertions(+), 56 deletions(-) rename tests/{anchor-centroid => anchor/centroid}/ref/1.png (100%) rename tests/{anchor-centroid => anchor/centroid}/test.typ (100%) rename tests/{local-anchor => anchor/local}/ref/1.png (100%) rename tests/{local-anchor => anchor/local}/test.typ (100%) rename tests/{arc-previous-position => arc/previous/position}/ref/1.png (100%) rename tests/{arc-previous-position => arc/previous/position}/test.typ (100%) rename tests/{arc-through => arc/through}/ref/1.png (100%) rename tests/{arc-through => arc/through}/test.typ (100%) rename tests/bezier/{ => base}/ref/1.png (100%) rename tests/bezier/{ => base}/test.typ (100%) rename tests/{bezier-shortening => bezier/shortening}/ref/1.png (100%) rename tests/{bezier-shortening => bezier/shortening}/test.typ (100%) rename tests/{bezier-through => bezier/through}/ref/1.png (100%) rename tests/{bezier-through => bezier/through}/test.typ (100%) rename tests/circle/{ => base}/ref/1.png (100%) rename tests/circle/{ => base}/test.typ (100%) rename tests/{circle-through => circle/through}/ref/1.png (100%) rename tests/{circle-through => circle/through}/test.typ (100%) rename tests/{copy-anchor => copy/anchor}/ref/1.png (100%) rename tests/{copy-anchor => copy/anchor}/test.typ (100%) rename tests/{custom-mark => custom/mark}/ref/1.png (100%) rename tests/{custom-mark => custom/mark}/test.typ (100%) rename tests/{element-anchors => element/anchors}/ref.png (100%) rename tests/{element-anchors => element/anchors}/ref/1.png (100%) rename tests/{element-anchors => element/anchors}/test.typ (100%) rename tests/{empty-group => empty/base}/ref/1.png (100%) rename tests/empty/{ => base}/test.typ (100%) rename tests/empty/{ => group}/ref/1.png (100%) rename tests/{empty-group => empty/group}/test.typ (100%) rename tests/{group-anchors => group/anchors}/ref/1.png (100%) rename tests/{group-anchors => group/anchors}/test.typ (100%) rename tests/{group-nested-anchors => group/nested/anchors}/ref/1.png (100%) rename tests/{group-nested-anchors => group/nested/anchors}/test.typ (100%) rename tests/{group-none => group/none}/ref.png (100%) rename tests/{group-none => group/none}/ref/1.png (100%) rename tests/{group-none => group/none}/test.typ (100%) rename tests/{group-padding => group/padding}/ref/1.png (100%) rename tests/{group-padding => group/padding}/test.typ (100%) rename tests/{group-transform => group/transform}/ref/1.png (100%) rename tests/{group-transform => group/transform}/test.typ (100%) rename tests/{group-translate => group/translate}/ref/1.png (100%) rename tests/{group-translate => group/translate}/test.typ (100%) rename tests/{line-element-element-intersection => line/element/element/intersection}/ref.png (100%) rename tests/{line-element-element-intersection => line/element/element/intersection}/ref/1.png (100%) rename tests/{line-element-element-intersection => line/element/element/intersection}/test.typ (100%) rename tests/{line-fill-rule => line/fill/rule}/ref/1.png (100%) rename tests/{line-fill-rule => line/fill/rule}/test.typ (100%) rename tests/{mark-anchors => mark/anchors}/ref/1.png (100%) rename tests/{mark-anchors => mark/anchors}/test.typ (100%) rename tests/{mark-auto-offset => mark/auto/offset}/ref/1.png (100%) rename tests/{mark-auto-offset => mark/auto/offset}/test.typ (100%) rename tests/{mark-position => mark/position}/ref/1.png (100%) rename tests/{mark-position => mark/position}/test.typ (100%) rename tests/{mark-shape-transform => mark/shape/transform}/ref/1.png (100%) rename tests/{mark-shape-transform => mark/shape/transform}/test.typ (100%) rename tests/{mark-single => mark/single}/ref.png (100%) rename tests/{mark-single => mark/single}/ref/1.png (100%) rename tests/{mark-single => mark/single}/test.typ (100%) rename tests/{mark-z-axis => mark/z/axis}/ref/1.png (100%) rename tests/{mark-z-axis => mark/z/axis}/test.typ (100%) rename tests/{multiple-marks => multiple/marks}/ref/1.png (100%) rename tests/{multiple-marks => multiple/marks}/test.typ (100%) rename tests/{path-anchors => path/anchors}/ref.png (100%) rename tests/{path-anchors => path/anchors}/ref/1.png (100%) rename tests/{path-anchors => path/anchors}/test.typ (100%) rename tests/{path-decoration => path/decoration}/ref/1.png (100%) rename tests/{path-decoration => path/decoration}/test.typ (100%) rename tests/{projection-default => projection/default}/ref/1.png (100%) rename tests/{projection-default => projection/default}/test.typ (100%) rename tests/{projection-ortho => projection/ortho}/ref/1.png (100%) rename tests/{projection-ortho => projection/ortho}/test.typ (100%) rename tests/{rect-around => rect/around/base}/ref/1.png (100%) rename tests/{rect-around => rect/around/base}/test.typ (100%) rename tests/{rect-around-padded => rect/around/padded}/ref/1.png (100%) rename tests/{rect-around-padded => rect/around/padded}/test.typ (100%) rename tests/rect/{ => base}/ref/1.png (100%) rename tests/rect/{ => base}/test.typ (100%) rename tests/{rect-rounded => rect/rounded}/ref/1.png (100%) rename tests/{rect-rounded => rect/rounded}/test.typ (100%) rename tests/{relative-length => relative/length}/ref/1.png (100%) rename tests/{relative-length => relative/length}/test.typ (100%) rename tests/{relative-no-update => relative/no/update}/ref/1.png (100%) rename tests/{relative-no-update => relative/no/update}/test.typ (100%) rename tests/{right-angle => right/angle}/ref/1.png (100%) rename tests/{right-angle => right/angle}/test.typ (100%) rename tests/{root-anchor => root/anchor}/ref/1.png (100%) rename tests/{root-anchor => root/anchor}/test.typ (100%) rename tests/{rotate-around => rotate/around}/ref/1.png (100%) rename tests/{rotate-around => rotate/around}/test.typ (100%) rename tests/{set-get-ctx => set/get/ctx}/ref/1.png (100%) rename tests/{set-get-ctx => set/get/ctx}/test.typ (100%) delete mode 100644 tests/style/inheritance/self/ref/1.png delete mode 100644 tests/style/inheritance/self/test.typ rename tests/style/inheritance/{base => }/test.typ (60%) rename tests/{transform-precission => transform/precission}/ref/1.png (100%) rename tests/{transform-precission => transform/precission}/test.typ (100%) diff --git a/tests/anchor-centroid/ref/1.png b/tests/anchor/centroid/ref/1.png similarity index 100% rename from tests/anchor-centroid/ref/1.png rename to tests/anchor/centroid/ref/1.png diff --git a/tests/anchor-centroid/test.typ b/tests/anchor/centroid/test.typ similarity index 100% rename from tests/anchor-centroid/test.typ rename to tests/anchor/centroid/test.typ diff --git a/tests/local-anchor/ref/1.png b/tests/anchor/local/ref/1.png similarity index 100% rename from tests/local-anchor/ref/1.png rename to tests/anchor/local/ref/1.png diff --git a/tests/local-anchor/test.typ b/tests/anchor/local/test.typ similarity index 100% rename from tests/local-anchor/test.typ rename to tests/anchor/local/test.typ diff --git a/tests/arc-previous-position/ref/1.png b/tests/arc/previous/position/ref/1.png similarity index 100% rename from tests/arc-previous-position/ref/1.png rename to tests/arc/previous/position/ref/1.png diff --git a/tests/arc-previous-position/test.typ b/tests/arc/previous/position/test.typ similarity index 100% rename from tests/arc-previous-position/test.typ rename to tests/arc/previous/position/test.typ diff --git a/tests/arc-through/ref/1.png b/tests/arc/through/ref/1.png similarity index 100% rename from tests/arc-through/ref/1.png rename to tests/arc/through/ref/1.png diff --git a/tests/arc-through/test.typ b/tests/arc/through/test.typ similarity index 100% rename from tests/arc-through/test.typ rename to tests/arc/through/test.typ diff --git a/tests/bezier/ref/1.png b/tests/bezier/base/ref/1.png similarity index 100% rename from tests/bezier/ref/1.png rename to tests/bezier/base/ref/1.png diff --git a/tests/bezier/test.typ b/tests/bezier/base/test.typ similarity index 100% rename from tests/bezier/test.typ rename to tests/bezier/base/test.typ diff --git a/tests/bezier-shortening/ref/1.png b/tests/bezier/shortening/ref/1.png similarity index 100% rename from tests/bezier-shortening/ref/1.png rename to tests/bezier/shortening/ref/1.png diff --git a/tests/bezier-shortening/test.typ b/tests/bezier/shortening/test.typ similarity index 100% rename from tests/bezier-shortening/test.typ rename to tests/bezier/shortening/test.typ diff --git a/tests/bezier-through/ref/1.png b/tests/bezier/through/ref/1.png similarity index 100% rename from tests/bezier-through/ref/1.png rename to tests/bezier/through/ref/1.png diff --git a/tests/bezier-through/test.typ b/tests/bezier/through/test.typ similarity index 100% rename from tests/bezier-through/test.typ rename to tests/bezier/through/test.typ diff --git a/tests/circle/ref/1.png b/tests/circle/base/ref/1.png similarity index 100% rename from tests/circle/ref/1.png rename to tests/circle/base/ref/1.png diff --git a/tests/circle/test.typ b/tests/circle/base/test.typ similarity index 100% rename from tests/circle/test.typ rename to tests/circle/base/test.typ diff --git a/tests/circle-through/ref/1.png b/tests/circle/through/ref/1.png similarity index 100% rename from tests/circle-through/ref/1.png rename to tests/circle/through/ref/1.png diff --git a/tests/circle-through/test.typ b/tests/circle/through/test.typ similarity index 100% rename from tests/circle-through/test.typ rename to tests/circle/through/test.typ diff --git a/tests/copy-anchor/ref/1.png b/tests/copy/anchor/ref/1.png similarity index 100% rename from tests/copy-anchor/ref/1.png rename to tests/copy/anchor/ref/1.png diff --git a/tests/copy-anchor/test.typ b/tests/copy/anchor/test.typ similarity index 100% rename from tests/copy-anchor/test.typ rename to tests/copy/anchor/test.typ diff --git a/tests/custom-mark/ref/1.png b/tests/custom/mark/ref/1.png similarity index 100% rename from tests/custom-mark/ref/1.png rename to tests/custom/mark/ref/1.png diff --git a/tests/custom-mark/test.typ b/tests/custom/mark/test.typ similarity index 100% rename from tests/custom-mark/test.typ rename to tests/custom/mark/test.typ diff --git a/tests/element-anchors/ref.png b/tests/element/anchors/ref.png similarity index 100% rename from tests/element-anchors/ref.png rename to tests/element/anchors/ref.png diff --git a/tests/element-anchors/ref/1.png b/tests/element/anchors/ref/1.png similarity index 100% rename from tests/element-anchors/ref/1.png rename to tests/element/anchors/ref/1.png diff --git a/tests/element-anchors/test.typ b/tests/element/anchors/test.typ similarity index 100% rename from tests/element-anchors/test.typ rename to tests/element/anchors/test.typ diff --git a/tests/empty-group/ref/1.png b/tests/empty/base/ref/1.png similarity index 100% rename from tests/empty-group/ref/1.png rename to tests/empty/base/ref/1.png diff --git a/tests/empty/test.typ b/tests/empty/base/test.typ similarity index 100% rename from tests/empty/test.typ rename to tests/empty/base/test.typ diff --git a/tests/empty/ref/1.png b/tests/empty/group/ref/1.png similarity index 100% rename from tests/empty/ref/1.png rename to tests/empty/group/ref/1.png diff --git a/tests/empty-group/test.typ b/tests/empty/group/test.typ similarity index 100% rename from tests/empty-group/test.typ rename to tests/empty/group/test.typ diff --git a/tests/group-anchors/ref/1.png b/tests/group/anchors/ref/1.png similarity index 100% rename from tests/group-anchors/ref/1.png rename to tests/group/anchors/ref/1.png diff --git a/tests/group-anchors/test.typ b/tests/group/anchors/test.typ similarity index 100% rename from tests/group-anchors/test.typ rename to tests/group/anchors/test.typ diff --git a/tests/group-nested-anchors/ref/1.png b/tests/group/nested/anchors/ref/1.png similarity index 100% rename from tests/group-nested-anchors/ref/1.png rename to tests/group/nested/anchors/ref/1.png diff --git a/tests/group-nested-anchors/test.typ b/tests/group/nested/anchors/test.typ similarity index 100% rename from tests/group-nested-anchors/test.typ rename to tests/group/nested/anchors/test.typ diff --git a/tests/group-none/ref.png b/tests/group/none/ref.png similarity index 100% rename from tests/group-none/ref.png rename to tests/group/none/ref.png diff --git a/tests/group-none/ref/1.png b/tests/group/none/ref/1.png similarity index 100% rename from tests/group-none/ref/1.png rename to tests/group/none/ref/1.png diff --git a/tests/group-none/test.typ b/tests/group/none/test.typ similarity index 100% rename from tests/group-none/test.typ rename to tests/group/none/test.typ diff --git a/tests/group-padding/ref/1.png b/tests/group/padding/ref/1.png similarity index 100% rename from tests/group-padding/ref/1.png rename to tests/group/padding/ref/1.png diff --git a/tests/group-padding/test.typ b/tests/group/padding/test.typ similarity index 100% rename from tests/group-padding/test.typ rename to tests/group/padding/test.typ diff --git a/tests/group-transform/ref/1.png b/tests/group/transform/ref/1.png similarity index 100% rename from tests/group-transform/ref/1.png rename to tests/group/transform/ref/1.png diff --git a/tests/group-transform/test.typ b/tests/group/transform/test.typ similarity index 100% rename from tests/group-transform/test.typ rename to tests/group/transform/test.typ diff --git a/tests/group-translate/ref/1.png b/tests/group/translate/ref/1.png similarity index 100% rename from tests/group-translate/ref/1.png rename to tests/group/translate/ref/1.png diff --git a/tests/group-translate/test.typ b/tests/group/translate/test.typ similarity index 100% rename from tests/group-translate/test.typ rename to tests/group/translate/test.typ diff --git a/tests/line-element-element-intersection/ref.png b/tests/line/element/element/intersection/ref.png similarity index 100% rename from tests/line-element-element-intersection/ref.png rename to tests/line/element/element/intersection/ref.png diff --git a/tests/line-element-element-intersection/ref/1.png b/tests/line/element/element/intersection/ref/1.png similarity index 100% rename from tests/line-element-element-intersection/ref/1.png rename to tests/line/element/element/intersection/ref/1.png diff --git a/tests/line-element-element-intersection/test.typ b/tests/line/element/element/intersection/test.typ similarity index 100% rename from tests/line-element-element-intersection/test.typ rename to tests/line/element/element/intersection/test.typ diff --git a/tests/line-fill-rule/ref/1.png b/tests/line/fill/rule/ref/1.png similarity index 100% rename from tests/line-fill-rule/ref/1.png rename to tests/line/fill/rule/ref/1.png diff --git a/tests/line-fill-rule/test.typ b/tests/line/fill/rule/test.typ similarity index 100% rename from tests/line-fill-rule/test.typ rename to tests/line/fill/rule/test.typ diff --git a/tests/mark-anchors/ref/1.png b/tests/mark/anchors/ref/1.png similarity index 100% rename from tests/mark-anchors/ref/1.png rename to tests/mark/anchors/ref/1.png diff --git a/tests/mark-anchors/test.typ b/tests/mark/anchors/test.typ similarity index 100% rename from tests/mark-anchors/test.typ rename to tests/mark/anchors/test.typ diff --git a/tests/mark-auto-offset/ref/1.png b/tests/mark/auto/offset/ref/1.png similarity index 100% rename from tests/mark-auto-offset/ref/1.png rename to tests/mark/auto/offset/ref/1.png diff --git a/tests/mark-auto-offset/test.typ b/tests/mark/auto/offset/test.typ similarity index 100% rename from tests/mark-auto-offset/test.typ rename to tests/mark/auto/offset/test.typ diff --git a/tests/mark-position/ref/1.png b/tests/mark/position/ref/1.png similarity index 100% rename from tests/mark-position/ref/1.png rename to tests/mark/position/ref/1.png diff --git a/tests/mark-position/test.typ b/tests/mark/position/test.typ similarity index 100% rename from tests/mark-position/test.typ rename to tests/mark/position/test.typ diff --git a/tests/mark-shape-transform/ref/1.png b/tests/mark/shape/transform/ref/1.png similarity index 100% rename from tests/mark-shape-transform/ref/1.png rename to tests/mark/shape/transform/ref/1.png diff --git a/tests/mark-shape-transform/test.typ b/tests/mark/shape/transform/test.typ similarity index 100% rename from tests/mark-shape-transform/test.typ rename to tests/mark/shape/transform/test.typ diff --git a/tests/mark-single/ref.png b/tests/mark/single/ref.png similarity index 100% rename from tests/mark-single/ref.png rename to tests/mark/single/ref.png diff --git a/tests/mark-single/ref/1.png b/tests/mark/single/ref/1.png similarity index 100% rename from tests/mark-single/ref/1.png rename to tests/mark/single/ref/1.png diff --git a/tests/mark-single/test.typ b/tests/mark/single/test.typ similarity index 100% rename from tests/mark-single/test.typ rename to tests/mark/single/test.typ diff --git a/tests/mark-z-axis/ref/1.png b/tests/mark/z/axis/ref/1.png similarity index 100% rename from tests/mark-z-axis/ref/1.png rename to tests/mark/z/axis/ref/1.png diff --git a/tests/mark-z-axis/test.typ b/tests/mark/z/axis/test.typ similarity index 100% rename from tests/mark-z-axis/test.typ rename to tests/mark/z/axis/test.typ diff --git a/tests/multiple-marks/ref/1.png b/tests/multiple/marks/ref/1.png similarity index 100% rename from tests/multiple-marks/ref/1.png rename to tests/multiple/marks/ref/1.png diff --git a/tests/multiple-marks/test.typ b/tests/multiple/marks/test.typ similarity index 100% rename from tests/multiple-marks/test.typ rename to tests/multiple/marks/test.typ diff --git a/tests/path-anchors/ref.png b/tests/path/anchors/ref.png similarity index 100% rename from tests/path-anchors/ref.png rename to tests/path/anchors/ref.png diff --git a/tests/path-anchors/ref/1.png b/tests/path/anchors/ref/1.png similarity index 100% rename from tests/path-anchors/ref/1.png rename to tests/path/anchors/ref/1.png diff --git a/tests/path-anchors/test.typ b/tests/path/anchors/test.typ similarity index 100% rename from tests/path-anchors/test.typ rename to tests/path/anchors/test.typ diff --git a/tests/path-decoration/ref/1.png b/tests/path/decoration/ref/1.png similarity index 100% rename from tests/path-decoration/ref/1.png rename to tests/path/decoration/ref/1.png diff --git a/tests/path-decoration/test.typ b/tests/path/decoration/test.typ similarity index 100% rename from tests/path-decoration/test.typ rename to tests/path/decoration/test.typ diff --git a/tests/projection-default/ref/1.png b/tests/projection/default/ref/1.png similarity index 100% rename from tests/projection-default/ref/1.png rename to tests/projection/default/ref/1.png diff --git a/tests/projection-default/test.typ b/tests/projection/default/test.typ similarity index 100% rename from tests/projection-default/test.typ rename to tests/projection/default/test.typ diff --git a/tests/projection-ortho/ref/1.png b/tests/projection/ortho/ref/1.png similarity index 100% rename from tests/projection-ortho/ref/1.png rename to tests/projection/ortho/ref/1.png diff --git a/tests/projection-ortho/test.typ b/tests/projection/ortho/test.typ similarity index 100% rename from tests/projection-ortho/test.typ rename to tests/projection/ortho/test.typ diff --git a/tests/rect-around/ref/1.png b/tests/rect/around/base/ref/1.png similarity index 100% rename from tests/rect-around/ref/1.png rename to tests/rect/around/base/ref/1.png diff --git a/tests/rect-around/test.typ b/tests/rect/around/base/test.typ similarity index 100% rename from tests/rect-around/test.typ rename to tests/rect/around/base/test.typ diff --git a/tests/rect-around-padded/ref/1.png b/tests/rect/around/padded/ref/1.png similarity index 100% rename from tests/rect-around-padded/ref/1.png rename to tests/rect/around/padded/ref/1.png diff --git a/tests/rect-around-padded/test.typ b/tests/rect/around/padded/test.typ similarity index 100% rename from tests/rect-around-padded/test.typ rename to tests/rect/around/padded/test.typ diff --git a/tests/rect/ref/1.png b/tests/rect/base/ref/1.png similarity index 100% rename from tests/rect/ref/1.png rename to tests/rect/base/ref/1.png diff --git a/tests/rect/test.typ b/tests/rect/base/test.typ similarity index 100% rename from tests/rect/test.typ rename to tests/rect/base/test.typ diff --git a/tests/rect-rounded/ref/1.png b/tests/rect/rounded/ref/1.png similarity index 100% rename from tests/rect-rounded/ref/1.png rename to tests/rect/rounded/ref/1.png diff --git a/tests/rect-rounded/test.typ b/tests/rect/rounded/test.typ similarity index 100% rename from tests/rect-rounded/test.typ rename to tests/rect/rounded/test.typ diff --git a/tests/relative-length/ref/1.png b/tests/relative/length/ref/1.png similarity index 100% rename from tests/relative-length/ref/1.png rename to tests/relative/length/ref/1.png diff --git a/tests/relative-length/test.typ b/tests/relative/length/test.typ similarity index 100% rename from tests/relative-length/test.typ rename to tests/relative/length/test.typ diff --git a/tests/relative-no-update/ref/1.png b/tests/relative/no/update/ref/1.png similarity index 100% rename from tests/relative-no-update/ref/1.png rename to tests/relative/no/update/ref/1.png diff --git a/tests/relative-no-update/test.typ b/tests/relative/no/update/test.typ similarity index 100% rename from tests/relative-no-update/test.typ rename to tests/relative/no/update/test.typ diff --git a/tests/right-angle/ref/1.png b/tests/right/angle/ref/1.png similarity index 100% rename from tests/right-angle/ref/1.png rename to tests/right/angle/ref/1.png diff --git a/tests/right-angle/test.typ b/tests/right/angle/test.typ similarity index 100% rename from tests/right-angle/test.typ rename to tests/right/angle/test.typ diff --git a/tests/root-anchor/ref/1.png b/tests/root/anchor/ref/1.png similarity index 100% rename from tests/root-anchor/ref/1.png rename to tests/root/anchor/ref/1.png diff --git a/tests/root-anchor/test.typ b/tests/root/anchor/test.typ similarity index 100% rename from tests/root-anchor/test.typ rename to tests/root/anchor/test.typ diff --git a/tests/rotate-around/ref/1.png b/tests/rotate/around/ref/1.png similarity index 100% rename from tests/rotate-around/ref/1.png rename to tests/rotate/around/ref/1.png diff --git a/tests/rotate-around/test.typ b/tests/rotate/around/test.typ similarity index 100% rename from tests/rotate-around/test.typ rename to tests/rotate/around/test.typ diff --git a/tests/set-get-ctx/ref/1.png b/tests/set/get/ctx/ref/1.png similarity index 100% rename from tests/set-get-ctx/ref/1.png rename to tests/set/get/ctx/ref/1.png diff --git a/tests/set-get-ctx/test.typ b/tests/set/get/ctx/test.typ similarity index 100% rename from tests/set-get-ctx/test.typ rename to tests/set/get/ctx/test.typ diff --git a/tests/style/inheritance/self/ref/1.png b/tests/style/inheritance/self/ref/1.png deleted file mode 100644 index e1bc51415fb40e84a7043f7e5362d58844b08658..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1738 zcma)+`&ZKUAIGV6s&DBeozbkMZPvUrFBN66Li-}9go$8Tme*#BQd!2=@{)e%Ou&#j zIX%M*ezDmHtEn?`>JUk*EmKNAhzbfaNx=)=FhleG)%FkUdCv2f=XpMVd7RgIv4ew% z)*Bo)AP@-a0DpW40>KMpT2Aa5*yRYs>Q%wVXntT>WqjbfAIM*VnQ8Ee=wfA>SP+U%L9^~lrmo=j-QEw`RbL_)(hX{y9(gM8>MqsG8&>`v=+mMA|N z`k4nFYyzac;MmbG9>>M>Bp!W!F|%PT^Kw~ccupp#{Of5j?38u@yq6th1 zz?I2g=H!E6;UM1pxa7)=CPG*BbJ5Kcef+}48xztVeptzut!PN~*ZcW*f%-&fPU zWm>hyzr$PEYX$D*$X|FjKiO|m9|i+9l99rp`QaDS@^lRgD?i53d`tdfCPppFk20V^??`A3K39QEQ{f79 zh%3E}K^YZ+So1>w-j{Z@Z>*<2!H)7t<{#<)9U53`RCHk2MG?|$g#Xvi2Cl=+Dob)j?_6B zN0aO&cFYU#fnm24H)AIx?$awalq%>#M_Z;Cit?jT{Os*N`1l^9lPjO&TKSiUtB~Wm z;z~$ZLG0HwHH6B<<7}uK&anI(B;7`vWEx2r>dFvQLFV=lcnq3h4f?>d&?ZR&35KEZ zelu%JVu8@nk!hOA&L!4vE)hBx)rQ?%MXBwEgKA!t5?kM*h3-6y;jf%`uNN2X#JI3r zR&QN8B`J=6@3#Riiy--?qQY-`-WM_FmE(eiyZre40g;HZ)m*@JJ!rhsIgzpYIWUxY z(3g&lGqJ)qgn0Lcyt+UNRU^{NcE@JNB7Rn8#ys8XKz&?qh+??m!RE7 zSuV=lY%=&-xUV3bUtZkED_ozQblQbI;Dh zuXP6WLZAY3cB<6D0Ygs3R%#(7DGyR=r8MHjjlySWip|IQeq8RM;>M;D54OV=@fj+g zbRNF;DH1cgPh2dA))QL5{UINjDZKP^!x#KfT)c){9{_Fu}K zn%Cc-to#GI)|dK@$4!A``!QeBlVhp1(8b9r>D0d{S>>he=S6jHLIPpjfW7Sffv6iH z-MrMlXe@S}quo~wY(&lMVGv+@VaJJ+qgOb5^I6wj*krcFblYNSR~r|%i&T$?%PTwD z2y~d=m%4N&uy5ea2fQU0F3kOn_vs4Wx&146iw-yqOUtqzbVN?=)XNa7#K zAyt~IKJY87sP59hqx`~Elq}QTjux{j`E7{bK)`#a$e@MgZggS#cz+#E6ChFY8)9HZ zc$nqAn{{Wlji7s{@EM-$hr9l+__`g&-6%)r8gii96jawEl>I+{2Fpz?ZgSmfFQR42 Si%DM@2KWWxe>ocU{r>^oVtg?G diff --git a/tests/style/inheritance/self/test.typ b/tests/style/inheritance/self/test.typ deleted file mode 100644 index b0f250885..000000000 --- a/tests/style/inheritance/self/test.typ +++ /dev/null @@ -1,56 +0,0 @@ -#set page(width: auto, height: auto) -#import "/src/lib.typ": * -#import "/tests/helper.typ": * - -#test-case({ - import draw: * - - let next(body) = { - translate((0,-.2,0)) - group(body) - } - - next({ - line((0,0), (1,0)) - }) - next({ - set-style(stroke: blue) - line((0,0), (1,0)) - }) - next({ - line((0,0), (1,0), stroke: blue) - }) - next({ - // Blue arrow - set-style(stroke: blue) - line((0,0), (1,0), mark: (end: ">")) - }) - next({ - // Blue arrow - line((0,0), (1,0), mark: (end: ">"), stroke: blue) - }) - next({ - // Blue + Green arrow head - line((0,0), (1,0), mark: (end: ">", stroke: green), stroke: blue) - }) - next({ - // Blue + Yellow arrow head - set-style(mark: (stroke: yellow)) - line((0,0), (1,0), mark: (end: ">"), stroke: blue) - }) - next({ - // Blue + Green arrow head - set-style(mark: (stroke: yellow), stroke: red) - line((0,0), (1,0), mark: (end: ">", stroke: green), stroke: blue) - }) - next({ - // Blue + Yellow/Green arrow head - set-style(mark: (stroke: yellow, fill: auto), stroke: blue, fill: blue) - line((0,0), (1,0), mark: (end: ">"), fill: green, stroke: green) - }) - next({ - // Blue arrow - set-style(stroke: red) - line((0,0), (1,0), mark: (end: ">"), stroke: blue) - }) -}) diff --git a/tests/style/inheritance/base/test.typ b/tests/style/inheritance/test.typ similarity index 60% rename from tests/style/inheritance/base/test.typ rename to tests/style/inheritance/test.typ index 8f065e165..97cbb998e 100644 --- a/tests/style/inheritance/base/test.typ +++ b/tests/style/inheritance/test.typ @@ -69,3 +69,56 @@ set-style(stroke: "wrong-value") assert-style-eq("stroke", "base", root: "my-root", base: (stroke: "base")) }) + +#test-case({ + import draw: * + + let next(body) = { + translate((0,-.2,0)) + group(body) + } + + next({ + line((0,0), (1,0)) + }) + next({ + set-style(stroke: blue) + line((0,0), (1,0)) + }) + next({ + line((0,0), (1,0), stroke: blue) + }) + next({ + // Blue arrow + set-style(stroke: blue) + line((0,0), (1,0), mark: (end: ">")) + }) + next({ + // Blue arrow + line((0,0), (1,0), mark: (end: ">"), stroke: blue) + }) + next({ + // Blue + Green arrow head + line((0,0), (1,0), mark: (end: ">", stroke: green), stroke: blue) + }) + next({ + // Blue + Yellow arrow head + set-style(mark: (stroke: yellow)) + line((0,0), (1,0), mark: (end: ">"), stroke: blue) + }) + next({ + // Blue + Green arrow head + set-style(mark: (stroke: yellow), stroke: red) + line((0,0), (1,0), mark: (end: ">", stroke: green), stroke: blue) + }) + next({ + // Blue + Yellow/Green arrow head + set-style(mark: (stroke: yellow, fill: auto), stroke: blue, fill: blue) + line((0,0), (1,0), mark: (end: ">"), fill: green, stroke: green) + }) + next({ + // Blue arrow + set-style(stroke: red) + line((0,0), (1,0), mark: (end: ">"), stroke: blue) + }) +}) diff --git a/tests/transform-precission/ref/1.png b/tests/transform/precission/ref/1.png similarity index 100% rename from tests/transform-precission/ref/1.png rename to tests/transform/precission/ref/1.png diff --git a/tests/transform-precission/test.typ b/tests/transform/precission/test.typ similarity index 100% rename from tests/transform-precission/test.typ rename to tests/transform/precission/test.typ