diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/templates/include.html | 2 | ||||
-rw-r--r-- | testing/tests/include.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/templates/include.html b/testing/templates/include.html index cdafbad..561bcac 100644 --- a/testing/templates/include.html +++ b/testing/templates/include.html @@ -1,3 +1,3 @@ -{% for s in strs -%} +{% for s in strs %} {% include "included.html" %} {%- endfor %} diff --git a/testing/tests/include.rs b/testing/tests/include.rs index f474c55..f0158d7 100644 --- a/testing/tests/include.rs +++ b/testing/tests/include.rs @@ -13,5 +13,5 @@ struct IncludeTemplate<'a> { fn test_include() { let strs = vec!["foo", "bar"]; let s = IncludeTemplate { strs: &strs }; - assert_eq!(s.render().unwrap(), "INCLUDED: fooINCLUDED: bar") + assert_eq!(s.render().unwrap(), "\n INCLUDED: foo\n INCLUDED: bar") } |