mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Add test for invalid list children
This commit is contained in:
parent
eccee9c39e
commit
47f4b5088f
@ -6,5 +6,6 @@ test_html! { |t3| <><> }
|
||||
test_html! { |t4| </></> }
|
||||
test_html! { |t5| <><></> }
|
||||
test_html! { |t6| <></><></> }
|
||||
test_html! { |t7| <>invalid</> }
|
||||
|
||||
fn main() {}
|
||||
|
||||
@ -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
|
||||
|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user