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
Joseph Siddons
GeoSpatialTools
Commits
029d7fea
Commit
029d7fea
authored
5 months ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
test: add test for rectangle fully containing, or fully contained by, another
parent
20b860ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
test/test_quadtree.py
test/test_quadtree.py
+8
-0
No files found.
test/test_quadtree.py
View file @
029d7fea
...
...
@@ -47,6 +47,14 @@ class TestRect(unittest.TestCase):
assert
test_rect
.
east
<
rect
.
west
assert
rect
.
intersects
(
test_rect
)
def
test_inside
(
self
):
# TEST: rectangle fully inside another
outer
=
Rectangle
(
-
10
,
10
,
-
10
,
10
)
inner
=
Rectangle
(
-
5
,
5
,
-
5
,
5
)
assert
outer
.
intersects
(
inner
)
assert
inner
.
intersects
(
outer
)
class
TestQuadTree
(
unittest
.
TestCase
):
def
test_divides
(
self
):
...
...
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