diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-02 11:28:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-02 11:28:31 +0100 |
| commit | bdb1c008f2cee7c3929b671d9407d2b578182199 (patch) | |
| tree | 2c255f9be26c870504ed7dfe819ac783d3de30e9 /tests | |
| parent | 7c33c1e691d23fbed6db99f54750f7538f5f1c25 (diff) | |
Allow set & show only directly in markup
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/style/set-block.png | bin | 1151 -> 0 bytes | |||
| -rw-r--r-- | tests/typ/style/set-block.typ | 10 | ||||
| -rw-r--r-- | tests/typ/style/set.typ | 5 | ||||
| -rw-r--r-- | tests/typ/style/show.typ | 5 |
4 files changed, 9 insertions, 11 deletions
diff --git a/tests/ref/style/set-block.png b/tests/ref/style/set-block.png Binary files differdeleted file mode 100644 index 898c9c65..00000000 --- a/tests/ref/style/set-block.png +++ /dev/null diff --git a/tests/typ/style/set-block.typ b/tests/typ/style/set-block.typ deleted file mode 100644 index f260acdc..00000000 --- a/tests/typ/style/set-block.typ +++ /dev/null @@ -1,10 +0,0 @@ -// Test set in code blocks. - ---- -// Test that template in block is not affected by set -// rule in block ... -A{set text(fill: eastern); [B]}C - ---- -// ... no matter the order. -A{[B]; set text(fill: eastern)}C diff --git a/tests/typ/style/set.typ b/tests/typ/style/set.typ new file mode 100644 index 00000000..0d4d47cc --- /dev/null +++ b/tests/typ/style/set.typ @@ -0,0 +1,5 @@ +// General tests for set. + +--- +// Error: 2-10 set is only allowed directly in markup +{set f(x)} diff --git a/tests/typ/style/show.typ b/tests/typ/style/show.typ index 42a35f27..533e50f5 100644 --- a/tests/typ/style/show.typ +++ b/tests/typ/style/show.typ @@ -1,6 +1,9 @@ // Test show rules. -// Ref: false --- // Error: 1-34 show rules are not yet implemented #show heading(body) as [*{body}*] + +--- +// Error: 2-15 show is only allowed directly in markup +{show (a) as b} |
