aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-07 07:39:42 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-07 07:39:42 +0100
commita0a3e4018c9fe1d23e0b53651804939a2711edde (patch)
tree57bad47d82d0ea6cb697568d0f49a712a2b3e15a /testing/tests/simple.rs
parent18735c964456e2333fbdee236ee12269360e2c97 (diff)
downloadaskama-a0a3e4018c9fe1d23e0b53651804939a2711edde.tar.gz
askama-a0a3e4018c9fe1d23e0b53651804939a2711edde.tar.bz2
askama-a0a3e4018c9fe1d23e0b53651804939a2711edde.zip
Create separate test module for loops
Diffstat (limited to 'testing/tests/simple.rs')
-rw-r--r--testing/tests/simple.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index a53257d..45bc0ff 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -66,21 +66,6 @@ fn test_else_if() {
#[derive(Template)]
-#[template(path = "for.html")]
-struct ForTemplate<'a> {
- strings: Vec<&'a str>,
-}
-
-#[test]
-fn test_for() {
- let s = ForTemplate {
- strings: vec!["A", "alfa", "1"],
- };
- assert_eq!(s.render(), "0. A\n1. alfa\n2. 1\n");
-}
-
-
-#[derive(Template)]
#[template(path = "literals.html")]
struct LiteralsTemplate {}