aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askama/src/filters.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/askama/src/filters.rs b/askama/src/filters.rs
index 62f2616..ccbf1a0 100644
--- a/askama/src/filters.rs
+++ b/askama/src/filters.rs
@@ -94,12 +94,18 @@ mod tests {
assert_eq!(escape(&"<&>"), "&lt;&amp;&gt;");
assert_eq!(escape(&"bla&"), "bla&amp;");
assert_eq!(escape(&"<foo"), "&lt;foo");
+ }
+ #[test]
+ fn test_lower() {
assert_eq!(lower(&"Foo"), "foo");
assert_eq!(lower(&"FOO"), "foo");
assert_eq!(lower(&"FooBar"), "foobar");
assert_eq!(lower(&"foo"), "foo");
+ }
+ #[test]
+ fn test_upper() {
assert_eq!(upper(&"Foo"), "FOO");
assert_eq!(upper(&"FOO"), "FOO");
assert_eq!(upper(&"FooBar"), "FOOBAR");