1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: error if ForInStmt is not handled (#6131)

This commit is contained in:
Nick Treleaven
2020-08-14 20:01:43 +01:00
committed by GitHub
parent b2fee21ef3
commit 75212f9fab
5 changed files with 22 additions and 6 deletions

View File

@ -34,12 +34,15 @@ fn test_search_by_attribute_value() {
fn test_access_parent() {
mut dom := generate_dom(generate_temp_html())
div_tags := dom.get_by_tag('div')[0]
assert div_tags.get_parent() != C.NULL
parent := div_tags.get_parent()
div_tags := dom.get_by_tag('div')
assert div_tags[0].get_parent() != C.NULL
/*
parent := div_tags[0].get_parent()
assert parent != C.NULL
for div_tag in div_tags {
assert div_tag.get_parent() == parent
}
*/
}
fn test_search_by_attributes() {