mirror of
https://github.com/PuerkitoBio/goquery
synced 2025-10-22 07:59:35 +08:00
Added test TestLastEmpty
This commit is contained in:
@@ -31,6 +31,11 @@ func TestLast(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestLastEmpty(t *testing.T) {
|
||||||
|
sel := Doc().Find(".pvk-zzcontentzz").Last()
|
||||||
|
AssertLength(t, sel.Nodes, 0)
|
||||||
|
}
|
||||||
|
|
||||||
func TestLastRollback(t *testing.T) {
|
func TestLastRollback(t *testing.T) {
|
||||||
sel := Doc().Find(".pvk-content")
|
sel := Doc().Find(".pvk-content")
|
||||||
sel2 := sel.Last().End()
|
sel2 := sel.Last().End()
|
||||||
|
Reference in New Issue
Block a user