Skip to content

Commit 8a8d8e5

Browse files
committed
add tests for NaturalIndex in SpatialTreeInterface tests
this probably isn't the best test suite but at least there is something..
1 parent 3497894 commit 8a8d8e5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/utils/SpatialTreeInterface.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ using GeometryOps.SpatialTreeInterface
44
using GeometryOps.SpatialTreeInterface: isspatialtree, isleaf, getchild, nchild, child_indices_extents, node_extent
55
using GeometryOps.SpatialTreeInterface: query, depth_first_search, dual_depth_first_search
66
using GeometryOps.SpatialTreeInterface: FlatNoTree
7+
using GeometryOps.NaturalIndexing: NaturalIndex
78
using Extents
89
using SortTileRecursiveTree: STRtree
910
using NaturalEarth
@@ -218,7 +219,15 @@ end
218219
test_find_point_in_all_countries(STRtree)
219220
end
220221

221-
222+
# Test NaturalIndex implementation
223+
@testset "STRtree" begin
224+
test_basic_interface(NaturalIndex)
225+
test_child_indices_extents(NaturalIndex)
226+
test_query_functionality(NaturalIndex)
227+
test_dual_query_functionality(NaturalIndex)
228+
test_geometry_support(NaturalIndex)
229+
test_find_point_in_all_countries(NaturalIndex)
230+
end
222231

223232
# This testset is not used because Polylabel.jl has some issues.
224233

0 commit comments

Comments
 (0)