From d90b5623d8a869f7b76e93aa0f8c5b3b4707127c Mon Sep 17 00:00:00 2001 From: Said Aroua Date: Sun, 25 May 2025 15:21:54 +0200 Subject: [PATCH] Add tests for empty labels (#5776) --- tests/suite/foundations/label.typ | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/suite/foundations/label.typ b/tests/suite/foundations/label.typ index 3b84c2d70..92a56ede4 100644 --- a/tests/suite/foundations/label.typ +++ b/tests/suite/foundations/label.typ @@ -92,3 +92,12 @@ _Visible_ --- label-non-existent-error --- // Error: 5-10 sequence does not have field "label" #[].label + +--- label-not-named-error --- +// Error: 23-32 expected non-empty label name += Something to label #label("") + +--- label-not-named-with-variable-error --- +#let var = "" +// Error: 18-28 expected non-empty label name += Another label #label(var)