diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 14:27:59 +0200 |
| commit | e039552f9d7bb49da8dafe7a83b87a08202eb30f (patch) | |
| tree | 264b461722f758d85217da804550620cd74b4f9e /tests/typ/compiler/construct.typ | |
| parent | 8e025c9cdfbb0a5dae536aafc27b5e19eeac1810 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/compiler/construct.typ')
| -rw-r--r-- | tests/typ/compiler/construct.typ | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/typ/compiler/construct.typ b/tests/typ/compiler/construct.typ deleted file mode 100644 index da077e7e..00000000 --- a/tests/typ/compiler/construct.typ +++ /dev/null @@ -1,31 +0,0 @@ -// Test constructors. - ---- -// Ensure that constructor styles aren't passed down the tree. -// The inner list should have no extra indent. -#set par(leading: 2pt) -#list(body-indent: 20pt, [First], list[A][B]) - ---- -// Ensure that constructor styles win, but not over outer styles. -// The outer paragraph should be right-aligned, -// but the B should be center-aligned. -#set list(marker: [>]) -#list(marker: [--])[ - #rect(width: 2cm, fill: conifer, inset: 4pt, list[A]) -] - ---- -// The inner rectangle should also be yellow here. -// (and therefore invisible) -#[#set rect(fill: yellow);#text(1em, rect(inset: 5pt, rect()))] - ---- -// The inner rectangle should not be yellow here. -A #box(rect(fill: yellow, inset: 5pt, rect())) B - ---- -// The constructor property should still work -// when there are recursive show rules. -#show enum: set text(blue) -#enum(numbering: "(a)", [A], enum[B]) |
