summaryrefslogtreecommitdiff
path: root/tests/typ/image-error.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-12-10 22:44:35 +0100
committerLaurenz <laurmaedje@gmail.com>2020-12-10 22:45:45 +0100
commit1cbd5f3051ba90b3f673bc2f6319192d05381719 (patch)
tree182134e9f355062a00a145fab3a988847c4ed13b /tests/typ/image-error.typ
parentfdc1b378a3eb3cf325592b801c43e2ec2478ddff (diff)
Refine test infrastructure ✅
- Tests diagnostics - More and better separated image tests
Diffstat (limited to 'tests/typ/image-error.typ')
-rw-r--r--tests/typ/image-error.typ8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/typ/image-error.typ b/tests/typ/image-error.typ
new file mode 100644
index 00000000..4fde4ab2
--- /dev/null
+++ b/tests/typ/image-error.typ
@@ -0,0 +1,8 @@
+// error: 5:9-5:30 failed to load image
+// error: 8:9-8:30 failed to load image
+
+// File does not exist.
+[image: "path/does/not/exist"]
+
+// File exists, but is no image.
+[image: "typ/image-error.typ"]