diff options
| author | Martin Haug <mhaug@live.de> | 2021-02-06 12:30:44 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-02-06 12:30:44 +0100 |
| commit | 80e076814dde330fb2136172580f11e939bc6601 (patch) | |
| tree | 6cd3474ffa5e2aced38e47a7ef563ab8940612be /tests/library | |
| parent | 8469bad7487e111c8e5a0ec542f0232a0ebb4bdc (diff) | |
Merge `rect` and `box` 🦚
Diffstat (limited to 'tests/library')
| -rw-r--r-- | tests/library/ref/box.png (renamed from tests/library/ref/geom.png) | bin | 5087 -> 5087 bytes | |||
| -rw-r--r-- | tests/library/typ/box.typ | 23 | ||||
| -rw-r--r-- | tests/library/typ/geom.typ | 23 |
3 files changed, 23 insertions, 23 deletions
diff --git a/tests/library/ref/geom.png b/tests/library/ref/box.png Binary files differindex 37fd7d27..37fd7d27 100644 --- a/tests/library/ref/geom.png +++ b/tests/library/ref/box.png diff --git a/tests/library/typ/box.typ b/tests/library/typ/box.typ new file mode 100644 index 00000000..03e5da54 --- /dev/null +++ b/tests/library/typ/box.typ @@ -0,0 +1,23 @@ +#[page "a5", flip: true] + +// Rectangle with width, should have paragraph height +#[box width: 2cm, color: #9650D6][aa] + +Sometimes there is no box + +// Rectangle with height, should span line +#[box height: 2cm, width: 100%, color: #734CED][bb] + +// Empty rectangle with width and height +#[box width: 6cm, height: 12pt, color: #CB4CED] + +// This empty rectangle should not be displayed +#[box width: 2in, color: #ff0000] + +// This one should be +#[box height: 15mm, width: 100%, color: #494DE3] + +// These are in a row! +#[box width: 2in, height: 10pt, color: #D6CD67] +#[box width: 2in, height: 10pt, color: #EDD466] +#[box width: 2in, height: 10pt, color: #E3BE62] diff --git a/tests/library/typ/geom.typ b/tests/library/typ/geom.typ deleted file mode 100644 index 26ba7ca3..00000000 --- a/tests/library/typ/geom.typ +++ /dev/null @@ -1,23 +0,0 @@ -#[page "a5", flip: true] - -// Rectangle with width, should have paragraph height -#[rect width: 2cm, color: #9650D6][aa] - -Sometimes there is no box - -// Rectangle with height, should span line -#[rect height: 2cm, color: #734CED][bb] - -// Empty rectangle with width and height -#[rect width: 6cm, height: 12pt, color: #CB4CED] - -// This empty rectangle should not be displayed -#[rect width: 2in, color: #ff0000] - -// This one should be -#[rect height: 15mm, color: #494DE3] - -// These are in a row! -#[rect width: 2in, height: 10pt, color: #D6CD67] -#[rect width: 2in, height: 10pt, color: #EDD466] -#[rect width: 2in, height: 10pt, color: #E3BE62] |
