Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NOCSurfaceProcesses
GeoSpatialTools
Commits
2117b756
Commit
2117b756
authored
2 weeks ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
test: fix quadtree length test - exclude point outside boundary from expected length
parent
4cd77c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/test_quadtree.py
test/test_quadtree.py
+2
-2
No files found.
test/test_quadtree.py
View file @
2117b756
...
...
@@ -81,7 +81,7 @@ class TestQuadTree(unittest.TestCase):
Record
(
10
,
5
),
Record
(
19
,
1
),
Record
(
0
,
0
),
Record
(
-
2
,
-
9.2
),
Record
(
-
2
,
-
9.2
),
# Not included
Record
(
12.8
,
2.1
),
]
expected
=
[
...
...
@@ -94,7 +94,7 @@ class TestQuadTree(unittest.TestCase):
for
point
in
points
:
qtree
.
insert
(
point
)
assert
qtree
.
divided
assert
qtree
.
len
()
==
len
(
points
)
assert
qtree
.
len
()
==
len
(
points
)
-
1
res
=
[
qtree
.
points
,
qtree
.
northwest
.
points
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment