From 020294fca9a7065d4b9cf4e677f606ebaaa29b00 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 13 Apr 2024 10:39:45 +0200 Subject: Better test runner (#3922) --- tests/typ/visualize/shape-square.typ | 39 ------------------------------------ 1 file changed, 39 deletions(-) delete mode 100644 tests/typ/visualize/shape-square.typ (limited to 'tests/typ/visualize/shape-square.typ') diff --git a/tests/typ/visualize/shape-square.typ b/tests/typ/visualize/shape-square.typ deleted file mode 100644 index a321dc4a..00000000 --- a/tests/typ/visualize/shape-square.typ +++ /dev/null @@ -1,39 +0,0 @@ -// Test the `square` function. - ---- -// Default square. -#box(square()) -#box(square[hey!]) - ---- -// Test auto-sized square. -#square(fill: eastern)[ - #set text(fill: white, weight: "bold") - Typst -] - ---- -// Test relative-sized child. -#square(fill: eastern)[ - #rect(width: 10pt, height: 5pt, fill: conifer) - #rect(width: 40%, height: 5pt, stroke: conifer) -] - ---- -// Test text overflowing height. -#set page(width: 75pt, height: 100pt) -#square(fill: conifer)[ - But, soft! what light through yonder window breaks? -] - ---- -// Test that square does not overflow page. -#set page(width: 100pt, height: 75pt) -#square(fill: conifer)[ - But, soft! what light through yonder window breaks? -] - ---- -// Size wins over width and height. -// Error: 09-20 unexpected argument: width -#square(width: 10cm, height: 20cm, size: 1cm, fill: rgb("eb5278")) -- cgit v1.2.3