mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-30 06:21:13 +00:00
reorganized filter tests
This commit is contained in:
parent
6f9fc729eb
commit
bedc16cbe3
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user