aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/templates/precedence-for.html2
-rw-r--r--testing/tests/loops.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/templates/precedence-for.html b/testing/templates/precedence-for.html
index e5f7e8b..c8d2cdd 100644
--- a/testing/templates/precedence-for.html
+++ b/testing/templates/precedence-for.html
@@ -1,3 +1,3 @@
{% for s in strings %}
- {{- loop.index0 }}. {{ s }}{% if !loop.first %}{% else %} (first){% endif %}
+ {{- loop.index0 }}. {{ s }}{{ 2 * loop.index }}{% if !loop.first %}{% else %} (first){% endif %}
{% endfor %}
diff --git a/testing/tests/loops.rs b/testing/tests/loops.rs
index 6c2f35d..70ebb21 100644
--- a/testing/tests/loops.rs
+++ b/testing/tests/loops.rs
@@ -44,5 +44,5 @@ fn test_precedence_for() {
let s = PrecedenceTemplate {
strings: vec!["A", "alfa", "1"],
};
- assert_eq!(s.render().unwrap(), "0. A (first)\n1. alfa\n2. 1\n");
+ assert_eq!(s.render().unwrap(), "0. A2 (first)\n1. alfa4\n2. 16\n");
}