diff options
| author | 2017-03-03 20:43:12 +0100 | |
|---|---|---|
| committer | 2017-03-03 20:43:12 +0100 | |
| commit | 71f9f51d2ad74b322f556846576f3f1c5e238a87 (patch) | |
| tree | 2d31303cc0cc72143fe4aeeee2f35fda8d414e2c /testing | |
| parent | 8c0f4358309b79ab58a2adfdacd5546ffe1545b1 (diff) | |
| download | askama-71f9f51d2ad74b322f556846576f3f1c5e238a87.tar.gz askama-71f9f51d2ad74b322f556846576f3f1c5e238a87.tar.bz2 askama-71f9f51d2ad74b322f556846576f3f1c5e238a87.zip | |
Add test for comments
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/templates/simple.html | 1 | ||||
| -rw-r--r-- | testing/tests/simple.rs | 2 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/testing/templates/simple.html b/testing/templates/simple.html index 51e225b..cc839dc 100644 --- a/testing/templates/simple.html +++ b/testing/templates/simple.html @@ -1,3 +1,4 @@ +{# our very first test! #}  hello world, {{ strvar }}  with number: {{ num }}  Iñtërnâtiônàlizætiøn is important diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index 2f69c84..60ecf05 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -19,7 +19,7 @@ fn test_variables() {          num: 42,          i18n: "Iñtërnâtiônàlizætiøn".to_string(),      }; -    assert_eq!(s.render(), "hello world, foo\n\ +    assert_eq!(s.render(), "\nhello world, foo\n\                              with number: 42\n\                              Iñtërnâtiônàlizætiøn is important\n\                              in vars too: Iñtërnâtiônàlizætiøn"); | 
