From 7e91c8dc87e345ee38b934375d113e824a423a2b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 17 Dec 2020 13:31:34 +0100 Subject: =?UTF-8?q?Add=20func-prefix=20to=20library=20function=20tests=20?= =?UTF-8?q?=E2=9C=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/typ/func-image-error.typ | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/typ/func-image-error.typ (limited to 'tests/typ/func-image-error.typ') diff --git a/tests/typ/func-image-error.typ b/tests/typ/func-image-error.typ new file mode 100644 index 00000000..e6a989ca --- /dev/null +++ b/tests/typ/func-image-error.typ @@ -0,0 +1,11 @@ +// Test error cases of the `image` function. + +// File does not exist. +[image: "path/does/not/exist"] + +// File exists, but is no image. +[image: "typ/image-error.typ"] + +// compare-ref: false +// error: 4:9-4:30 failed to load image +// error: 7:9-7:30 failed to load image -- cgit v1.2.3