diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/templates/for.html | 2 | ||||
-rw-r--r-- | testing/tests/simple.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/templates/for.html b/testing/templates/for.html index c38e6bb..f63df9d 100644 --- a/testing/templates/for.html +++ b/testing/templates/for.html @@ -1,3 +1,3 @@ {% for s in strings %} - {{ s }} + {{- loop.index0 }}. {{ s }} {% endfor %} 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"); } |