diff options
Diffstat (limited to '')
-rw-r--r-- | askama/src/filters.rs | 6 |
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(&"<&>"), "<&>"); assert_eq!(escape(&"bla&"), "bla&"); assert_eq!(escape(&"<foo"), "<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"); |