aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui/elif.rs
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2023-10-25 11:11:00 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-10-25 14:54:14 +0200
commit77d5d28b20162c522483ed009afba2ca9a6ee390 (patch)
tree691832d38eaf67840e4a77653520d0b3d322a563 /testing/tests/ui/elif.rs
parentd48ac76f0a6561cc16aa650f0f33a3d1f9e809b9 (diff)
downloadaskama-77d5d28b20162c522483ed009afba2ca9a6ee390.tar.gz
askama-77d5d28b20162c522483ed009afba2ca9a6ee390.tar.bz2
askama-77d5d28b20162c522483ed009afba2ca9a6ee390.zip
Add UI test for `elif` error message
Diffstat (limited to '')
-rw-r--r--testing/tests/ui/elif.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/tests/ui/elif.rs b/testing/tests/ui/elif.rs
new file mode 100644
index 0000000..650f292
--- /dev/null
+++ b/testing/tests/ui/elif.rs
@@ -0,0 +1,8 @@
+use askama::Template;
+
+#[derive(Template)]
+#[template(source = "{% if true %}{% elif false %}{% endif %}", ext = "html")]
+struct UnknownElif;
+
+fn main() {
+}