Add test for panic on invalid blocks (see #27)

This commit is contained in:
Dirkjan Ochtman 2017-08-04 15:58:09 +02:00
parent a90b065f46
commit e293a1a90c

View File

@ -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\" %}");
}
}