Skip to content

Commit bb76207

Browse files
committed
Fix tests
1 parent 728befc commit bb76207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils/SpatialTreeInterface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22

33
using GeometryOps.SpatialTreeInterface
44
using GeometryOps.SpatialTreeInterface: isspatialtree, isleaf, getchild, nchild, child_indices_extents, node_extent
5-
using GeometryOps.SpatialTreeInterface: query, do_query, do_dual_query
5+
using GeometryOps.SpatialTreeInterface: query, depth_first_search, dual_depth_first_search
66
using GeometryOps.SpatialTreeInterface: FlatNoTree
77
using Extents
88
using GeoInterface: GeoInterface as GI
@@ -81,13 +81,13 @@ function test_dual_query_functionality(TreeType)
8181
# Test dual query with a predicate that matches all
8282
all_pred = (x, y) -> true
8383
results = Tuple{Int, Int}[]
84-
do_dual_query((i, j) -> push!(results, (i, j)), all_pred, tree1, tree2)
84+
dual_depth_first_search((i, j) -> push!(results, (i, j)), all_pred, tree1, tree2)
8585
@test length(results) == 4 # 2 points in tree1 * 2 points in tree2
8686

8787
# Test dual query with a specific predicate
8888
intersects_pred = (x, y) -> Extents.intersects(x, y)
8989
results = Tuple{Int, Int}[]
90-
do_dual_query((i, j) -> push!(results, (i, j)), intersects_pred, tree1, tree2)
90+
dual_depth_first_search((i, j) -> push!(results, (i, j)), intersects_pred, tree1, tree2)
9191
@test sort(results) == [(1,1), (2,1), (2,2)]
9292
end
9393
end

0 commit comments

Comments
 (0)