diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-10-30 22:59:24 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-10-30 23:00:40 +0100 |
| commit | 55296a9196ad441c0898787915cd63558ed3c3c5 (patch) | |
| tree | f46d03b83b9c78ab489516dcb343f5666c307611 /tests | |
| parent | 90cd1a5a09f725bd855dcd546dba615fab30ecc4 (diff) | |
Say which label occurs never or multiple times in error message
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/meta/bibliography.typ | 16 | ||||
| -rw-r--r-- | tests/typ/meta/link.typ | 4 | ||||
| -rw-r--r-- | tests/typ/meta/ref.typ | 4 |
3 files changed, 13 insertions, 11 deletions
diff --git a/tests/typ/meta/bibliography.typ b/tests/typ/meta/bibliography.typ index 07c17dc6..e3d746e6 100644 --- a/tests/typ/meta/bibliography.typ +++ b/tests/typ/meta/bibliography.typ @@ -1,13 +1,6 @@ // Test citations and bibliographies. --- -// Test ambiguous reference. -= Introduction <arrgh> -// Error: 1-7 label occurs in the document and its bibliography -@arrgh -#bibliography("/files/works.bib") - ---- #set page(width: 200pt) = Details See also #cite("arrgh", "distress", supplement: [p. 22]), @arrgh[p. 4], and @distress[p. 5]. @@ -41,3 +34,12 @@ And quark! @quark = Multiple Bibs Now we have multiple bibliographies containing #cite("glacier-melt", "keshav2007read") #bibliography(("/files/works.bib", "/files/works_too.bib")) + +--- +// Test ambiguous reference. += Introduction <arrgh> + +// Error: 1-7 label occurs in the document and its bibliography +@arrgh +#bibliography("/files/works.bib") + diff --git a/tests/typ/meta/link.typ b/tests/typ/meta/link.typ index 5dfe37e7..f93189cb 100644 --- a/tests/typ/meta/link.typ +++ b/tests/typ/meta/link.typ @@ -67,11 +67,11 @@ Text <hey> #link(<hey>)[Go to text.] --- -// Error: 2-20 label does not exist in the document +// Error: 2-20 label `<hey>` does not exist in the document #link(<hey>)[Nope.] --- Text <hey> Text <hey> -// Error: 2-20 label occurs multiple times in the document +// Error: 2-20 label `<hey>` occurs multiple times in the document #link(<hey>)[Nope.] diff --git a/tests/typ/meta/ref.typ b/tests/typ/meta/ref.typ index 630bad61..e01bc941 100644 --- a/tests/typ/meta/ref.typ +++ b/tests/typ/meta/ref.typ @@ -10,14 +10,14 @@ See @setup. As seen in @intro, we proceed. --- -// Error: 1-5 label does not exist in the document +// Error: 1-5 label `<foo>` does not exist in the document @foo --- = First <foo> = Second <foo> -// Error: 1-5 label occurs multiple times in the document +// Error: 1-5 label `<foo>` occurs multiple times in the document @foo --- |
