mirror of
https://github.com/TangentFoxy/lua-htmlparser.git
synced 2025-07-28 11:02:18 +00:00
tidbit in hierarchy tests
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user