mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
Add test for panic on invalid blocks (see #27)
This commit is contained in:
parent
a90b065f46
commit
e293a1a90c
@ -398,4 +398,9 @@ mod tests {
|
||||
check_ws_split("b\n", &("", "b", "\n"));
|
||||
check_ws_split(" \t\r\n", &(" \t\r\n", "", ""));
|
||||
}
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_invalid_block() {
|
||||
super::parse("{% extend \"blah\" %}");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user