aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/tests/filters.rs2
-rw-r--r--testing/tests/simple.rs7
2 files changed, 3 insertions, 6 deletions
diff --git a/testing/tests/filters.rs b/testing/tests/filters.rs
index 22a8fa9..1f382f6 100644
--- a/testing/tests/filters.rs
+++ b/testing/tests/filters.rs
@@ -21,7 +21,7 @@ fn filter_escape() {
};
assert_eq!(
s.render().unwrap(),
- "// my <html> is "unsafe" & \
+ "// my <html> is "unsafe" & \
should be 'escaped'"
);
}
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index b6dd31a..c712900 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -40,12 +40,9 @@ struct EscapeTemplate<'a> {
#[test]
fn test_escape() {
- let s = EscapeTemplate { name: "<>&\"'/" };
+ let s = EscapeTemplate { name: "<>&\"'" };
- assert_eq!(
- s.render().unwrap(),
- "Hello, &lt;&gt;&amp;&quot;&#x27;&#x2f;!"
- );
+ assert_eq!(s.render().unwrap(), "Hello, &lt;&gt;&amp;&quot;&#x27;!");
}
#[derive(Template)]