diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-25 12:46:13 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-25 12:46:13 +0200 |
commit | 9a3c57ac34c3507282828de4ef4f7ebbfb014f81 (patch) | |
tree | 7767ad056d7f770490af199fc5c6080b9580987e /testing/tests/loops.rs | |
parent | fc0863f40b64ff927a3aa1261b3d8d30afe68d85 (diff) | |
download | askama-9a3c57ac34c3507282828de4ef4f7ebbfb014f81.tar.gz askama-9a3c57ac34c3507282828de4ef4f7ebbfb014f81.tar.bz2 askama-9a3c57ac34c3507282828de4ef4f7ebbfb014f81.zip |
Add test for 'loop.first' variable
Diffstat (limited to '')
-rw-r--r-- | testing/tests/loops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)] |