aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-01-12 19:21:15 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-01-12 19:21:15 +0100
commit780c93c3f167ca3df26229024e42843358b916ad (patch)
tree3d2cf27972feebae9a7fd8c53a93fc31ad9403b1 /testing/tests
parenta3ee36d21175204774462ca5a420874fd7f6503b (diff)
downloadaskama-780c93c3f167ca3df26229024e42843358b916ad.tar.gz
askama-780c93c3f167ca3df26229024e42843358b916ad.tar.bz2
askama-780c93c3f167ca3df26229024e42843358b916ad.zip
Use 'else if' instead of 'elif' to align more with Rust
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/simple.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 61f5fa4..697dbd2 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -55,14 +55,14 @@ fn test_else() {
#[derive(Template)]
-#[template(path = "elif.html")]
-struct ElIfTemplate {
+#[template(path = "else-if.html")]
+struct ElseIfTemplate {
cond: bool,
check: bool,
}
#[test]
-fn test_elif() {
- let s = ElIfTemplate { cond: false, check: true };
+fn test_else_if() {
+ let s = ElseIfTemplate { cond: false, check: true };
assert_eq!(s.render(), "checked\n");
}