From a0a3e4018c9fe1d23e0b53651804939a2711edde Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 7 Mar 2017 07:39:42 +0100 Subject: Create separate test module for loops --- testing/tests/simple.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'testing/tests/simple.rs') 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 @@ -65,21 +65,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 {} -- cgit