mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-04 23:34:20 +00:00
tidbit in hierarchy tests
This commit is contained in:
parent
2bba6a7189
commit
b3bbb56d9f
@ -53,6 +53,9 @@ function test_descendants()
|
||||
<child>8</child>
|
||||
</arbitrary>
|
||||
</parent>
|
||||
<arbitrary>
|
||||
<child>not</child>
|
||||
</arbitrary>
|
||||
]])
|
||||
sel = tree("parent child")
|
||||
assert_equal(8, sel:len(), 'parent child')
|
||||
@ -78,6 +81,9 @@ function test_children()
|
||||
<child>not</child>
|
||||
</arbitrary>
|
||||
</parent>
|
||||
<arbitrary>
|
||||
<child>not</child>
|
||||
</arbitrary>
|
||||
]])
|
||||
sel = tree("parent > child")
|
||||
assert_equal(4, sel:len(), 'parent > child')
|
||||
|
Loading…
Reference in New Issue
Block a user