mirror of
https://github.com/PuerkitoBio/goquery.git
synced 2024-04-21 12:31:36 +00:00
doc fixes
This commit is contained in:
+2
-2
@@ -94,9 +94,9 @@ func TestNotSelection(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUnion(t *testing.T) {
|
||||
func TestIntersection(t *testing.T) {
|
||||
sel := Doc().Find(".pvk-gutter")
|
||||
sel2 := Doc().Find("div").Union(sel)
|
||||
sel2 := Doc().Find("div").Intersection(sel)
|
||||
if len(sel2.Nodes) != 6 {
|
||||
t.Errorf("Expected 6 nodes, found %v.", len(sel2.Nodes))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user