aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-22 14:59:56 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-22 14:59:56 +0100
commit8a25a1ee65031a687ad7d208eaa2843aed6c9752 (patch)
tree83e16e2662a3182ea94989d436e9752d2ca54bdb /testing/tests/simple.rs
parented98793b506c66723c713991f40c0065557a35d5 (diff)
downloadaskama-8a25a1ee65031a687ad7d208eaa2843aed6c9752.tar.gz
askama-8a25a1ee65031a687ad7d208eaa2843aed6c9752.tar.bz2
askama-8a25a1ee65031a687ad7d208eaa2843aed6c9752.zip
Add Template method to return template extension
Thanks to Ryan McGrath for the suggestion and initial implementation.
Diffstat (limited to 'testing/tests/simple.rs')
-rw-r--r--testing/tests/simple.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 95c14b1..4af2cea 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -27,6 +27,7 @@ fn test_variables() {
Iñtërnâtiônàlizætiøn is important\n\
in vars too: Iñtërnâtiônàlizætiøn"
);
+ assert_eq!(s.extension(), Some("html"));
}
#[derive(Template)]