Skip to content

Commit 4ccf67b

Browse files
committed
fix tests
1 parent e5ad556 commit 4ccf67b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

test/utils/SpatialTreeInterface.jl

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ function test_basic_interface(TreeType)
1414
# Create a simple tree with one extent
1515
extents = [Extents.Extent(X=(0.0, 1.0), Y=(0.0, 1.0))]
1616
tree = TreeType(extents)
17-
18-
@test isleaf(tree)
17+
1918
@test isspatialtree(tree)
2019
@test isspatialtree(typeof(tree))
2120
end
@@ -100,23 +99,9 @@ function test_geometry_support(TreeType)
10099
tree = TreeType(points)
101100

102101
# Test basic interface
103-
@test isleaf(tree)
104102
@test isspatialtree(tree)
105103
@test isspatialtree(typeof(tree))
106104

107-
# Test child indices and extents
108-
indices_extents = collect(child_indices_extents(tree))
109-
@test length(indices_extents) == 100
110-
111-
# Check first and last points
112-
first_idx, first_extent = indices_extents[1]
113-
last_idx, last_extent = indices_extents[100]
114-
115-
@test first_idx == 1
116-
@test last_idx == 100
117-
@test first_extent == Extents.Extent(X=(1.0, 1.0), Y=(1.0, 1.0))
118-
@test last_extent == Extents.Extent(X=(100.0, 100.0), Y=(100.0, 100.0))
119-
120105
# Test query functionality
121106
all_pred = x -> true
122107
results = query(tree, all_pred)

0 commit comments

Comments
 (0)