diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compute/data.typ | 4 | ||||
| -rw-r--r-- | tests/typ/meta/bibliography.typ | 27 |
2 files changed, 29 insertions, 2 deletions
diff --git a/tests/typ/compute/data.typ b/tests/typ/compute/data.typ index d80d4857..43746e18 100644 --- a/tests/typ/compute/data.typ +++ b/tests/typ/compute/data.typ @@ -11,8 +11,8 @@ #let data = read("/missing.txt") --- -// Error: 18-37 file is not valid utf-8 -#let data = read("/invalid-utf8.txt") +// Error: 18-28 file is not valid utf-8 +#let data = read("/bad.txt") --- // Test reading CSV data. diff --git a/tests/typ/meta/bibliography.typ b/tests/typ/meta/bibliography.typ new file mode 100644 index 00000000..2e2ddd35 --- /dev/null +++ b/tests/typ/meta/bibliography.typ @@ -0,0 +1,27 @@ +// Test citations and bibliographies. + +--- +// Error: 15-25 failed to parse biblatex file: wrong number of digits in line 5 +#bibliography("/bad.bib") + +--- +// Test ambigious reference. += Introduction <arrgh> +// Error: 1-7 label occurs in the document and its bibliography +@arrgh +#bibliography("/works.bib") + +--- +#set page(width: 200pt) += Details +See also #cite("arrgh", [p. 22]), @arrgh[p. 4], and @cannonfodder[p. 5]. +#bibliography("/works.bib") + +--- +// Test unconventional order. +#set page(width: 200pt) +#bibliography("/works.bib", title: [Works to be cited], style: "author-date") +#line(length: 100%) +The net-work is a creature of its own. @stupid +This is close to piratery! @arrgh +And quark! @quark |
