From 9a3c57ac34c3507282828de4ef4f7ebbfb014f81 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 25 Jun 2018 12:46:13 +0200 Subject: Add test for 'loop.first' variable --- testing/tests/loops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/tests') diff --git a/testing/tests/loops.rs b/testing/tests/loops.rs index 32f0aca..ac19d43 100644 --- a/testing/tests/loops.rs +++ b/testing/tests/loops.rs @@ -14,7 +14,7 @@ fn test_for() { let s = ForTemplate { strings: vec!["A", "alfa", "1"], }; - assert_eq!(s.render().unwrap(), "0. A\n1. alfa\n2. 1\n"); + assert_eq!(s.render().unwrap(), "0. A (first)\n1. alfa\n2. 1\n"); } #[derive(Template)] -- cgit