diff options
| author | Martin Haug <mhaug@live.de> | 2023-10-27 18:33:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-27 18:33:23 +0200 |
| commit | f78a8f5d4863260d05cbabe2711324489be47242 (patch) | |
| tree | 7cfa0bdd805ae3c385812ef4f74aa14e867fc7fc /tests | |
| parent | 4163b2eabc1df29741228838fdce9d428b662500 (diff) | |
Add IDs and creation date to PDFs (#2374)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/tests.rs | 6 | ||||
| -rw-r--r-- | tests/typ/meta/document.typ | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 1aed32d7..d974b731 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -420,7 +420,11 @@ fn test( let document = Document { pages: frames, ..Default::default() }; if compare_ever { if let Some(pdf_path) = pdf_path { - let pdf_data = typst::export::pdf(&document); + let pdf_data = typst::export::pdf( + &document, + Some(&format!("typst-test: {}", name.display())), + world.today(Some(0)), + ); fs::create_dir_all(pdf_path.parent().unwrap()).unwrap(); fs::write(pdf_path, pdf_data).unwrap(); } diff --git a/tests/typ/meta/document.typ b/tests/typ/meta/document.typ index 814d547d..43e4ca39 100644 --- a/tests/typ/meta/document.typ +++ b/tests/typ/meta/document.typ @@ -11,7 +11,7 @@ What's up? #set document(author: ("A", "B"), date: datetime.today()) --- -// Error: 21-28 expected datetime or none, found string +// Error: 21-28 expected datetime, none, or auto, found string #set document(date: "today") --- |
