mirror of
https://github.com/typst/typst
synced 2025-08-26 04:34:14 +08:00
Add tests for empty labels (#5776)
This commit is contained in:
parent
c38558d9db
commit
d90b5623d8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user