Add test for invalid list children

This commit is contained in:
Justin Starry 2019-05-28 15:54:16 -04:00
parent eccee9c39e
commit 47f4b5088f
2 changed files with 7 additions and 0 deletions

View File

@ -6,5 +6,6 @@ test_html! { |t3| <><> }
test_html! { |t4| </></> }
test_html! { |t5| <><></> }
test_html! { |t6| <></><></> }
test_html! { |t7| <>invalid</> }
fn main() {}

View File

@ -1,3 +1,9 @@
error: expected valid html element
--> $DIR/html-list-fail.rs:9:21
|
9 | test_html! { |t7| <>invalid</> }
| ^^^^^^^
error: only one root html element allowed
--> $DIR/html-list-fail.rs:8:24
|