aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-19 14:19:11 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-19 14:19:11 +0100
commita407cd477bc50582994f21bc8c4f9fc961e177fd (patch)
treedcb56ad90ed118a387e72863fe8016e0eb9d6903 /testing/tests
parent436a82f50f65624d2c7aa4bcca284640c80c47c1 (diff)
downloadaskama-a407cd477bc50582994f21bc8c4f9fc961e177fd.tar.gz
askama-a407cd477bc50582994f21bc8c4f9fc961e177fd.tar.bz2
askama-a407cd477bc50582994f21bc8c4f9fc961e177fd.zip
Add basic test for loop variables
Diffstat (limited to '')
-rw-r--r--testing/tests/simple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 8e5c85a..454c1e2 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -77,7 +77,7 @@ fn test_for() {
let s = ForTemplate {
strings: vec!["A", "alfa", "1"],
};
- assert_eq!(s.render(), "\n A\n\n alfa\n\n 1\n\n");
+ assert_eq!(s.render(), "0. A\n1. alfa\n2. 1\n\n");
}