mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
cgen: error if ForInStmt is not handled (#6131)
This commit is contained in:
parent
b2fee21ef3
commit
75212f9fab
5 changed files with 22 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue