diff options
Diffstat (limited to '')
-rw-r--r-- | testing/templates/elif.html | 1 | ||||
-rw-r--r-- | testing/templates/else-if.html | 1 | ||||
-rw-r--r-- | testing/tests/simple.rs | 8 |
3 files changed, 5 insertions, 5 deletions
diff --git a/testing/templates/elif.html b/testing/templates/elif.html deleted file mode 100644 index ad0cbae..0000000 --- a/testing/templates/elif.html +++ /dev/null @@ -1 +0,0 @@ -{% if cond %}true{% elif check %}checked{% else %}false{% endif %} diff --git a/testing/templates/else-if.html b/testing/templates/else-if.html new file mode 100644 index 0000000..469e08e --- /dev/null +++ b/testing/templates/else-if.html @@ -0,0 +1 @@ +{% if cond %}true{% else if check %}checked{% else %}false{% endif %} 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"); } |