mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-27 12:44:22 +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>
|
<child>8</child>
|
||||||
</arbitrary>
|
</arbitrary>
|
||||||
</parent>
|
</parent>
|
||||||
|
<arbitrary>
|
||||||
|
<child>not</child>
|
||||||
|
</arbitrary>
|
||||||
]])
|
]])
|
||||||
sel = tree("parent child")
|
sel = tree("parent child")
|
||||||
assert_equal(8, sel:len(), 'parent child')
|
assert_equal(8, sel:len(), 'parent child')
|
||||||
@ -78,6 +81,9 @@ function test_children()
|
|||||||
<child>not</child>
|
<child>not</child>
|
||||||
</arbitrary>
|
</arbitrary>
|
||||||
</parent>
|
</parent>
|
||||||
|
<arbitrary>
|
||||||
|
<child>not</child>
|
||||||
|
</arbitrary>
|
||||||
]])
|
]])
|
||||||
sel = tree("parent > child")
|
sel = tree("parent > child")
|
||||||
assert_equal(4, sel:len(), 'parent > child')
|
assert_equal(4, sel:len(), 'parent > child')
|
||||||
|
Loading…
Reference in New Issue
Block a user