Skip to content

Commit 91b37a9

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 a7a0172 commit 91b37a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/utils/SpatialTreeInterface.jl

Lines changed: 9 additions & 0 deletions
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
@@ -200,6 +201,14 @@ end
200201
test_geometry_support(TreeType)
201202
test_find_point_in_all_countries(TreeType)
202203
end
204+
# Test NaturalIndex implementation
205+
@testset "NaturalIndex" begin
206+
test_basic_interface(NaturalIndex)
207+
test_child_indices_extents(NaturalIndex)
208+
test_query_functionality(NaturalIndex)
209+
test_dual_query_functionality(NaturalIndex)
210+
test_geometry_support(NaturalIndex)
211+
# test_find_point_in_all_countries(NaturalIndex)
203212
end
204213

205214

0 commit comments

Comments
 (0)