From 71f9f51d2ad74b322f556846576f3f1c5e238a87 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 3 Mar 2017 20:43:12 +0100 Subject: Add test for comments --- testing/templates/simple.html | 1 + testing/tests/simple.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'testing') 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"); -- cgit