Skip to content

Commit b6b236b

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 2fc81d1 commit b6b236b

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 GeoInterface: GeoInterface as GI
910
using SortTileRecursiveTree: STRtree
@@ -183,7 +184,15 @@ end
183184
test_find_point_in_all_countries(STRtree)
184185
end
185186

186-
187+
# Test NaturalIndex implementation
188+
@testset "STRtree" begin
189+
test_basic_interface(NaturalIndex)
190+
test_child_indices_extents(NaturalIndex)
191+
test_query_functionality(NaturalIndex)
192+
test_dual_query_functionality(NaturalIndex)
193+
test_geometry_support(NaturalIndex)
194+
test_find_point_in_all_countries(NaturalIndex)
195+
end
187196

188197
# This testset is not used because Polylabel.jl has some issues.
189198

0 commit comments

Comments
 (0)