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
3edde364
Commit
3edde364
authored
1 month ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
chore: format
parent
02b6e70e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/test_neighbours.py
test/test_neighbours.py
+2
-2
No files found.
test/test_neighbours.py
View file @
3edde364
...
@@ -30,11 +30,11 @@ class TestFindNearest(unittest.TestCase):
...
@@ -30,11 +30,11 @@ class TestFindNearest(unittest.TestCase):
def
test_sorted_warn
(
self
):
def
test_sorted_warn
(
self
):
with
self
.
assertWarns
(
SortedWarning
):
with
self
.
assertWarns
(
SortedWarning
):
find_nearest
([
1.
,
2.
,
3.
],
2.3
,
check_sorted
=
False
)
find_nearest
([
1.
0
,
2.
0
,
3.
0
],
2.3
,
check_sorted
=
False
)
def
test_sorted_error
(
self
):
def
test_sorted_error
(
self
):
with
self
.
assertRaises
(
SortedError
):
with
self
.
assertRaises
(
SortedError
):
find_nearest
([
3.
,
1.
,
2.
],
2.3
)
find_nearest
([
3.
0
,
1.
0
,
2.
0
],
2.3
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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