diff --git a/array_test.go b/array_test.go index 4237dc6..721affd 100644 --- a/array_test.go +++ b/array_test.go @@ -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) { sel := Doc().Find(".pvk-content") sel2 := sel.Last().End()