Skip to content

Commit

Permalink
Add missing pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoledoux committed Mar 11, 2024
1 parent 54804a0 commit 276ff41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_spatialextent.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ def test_locate():
assert (dt.locate([7.1, 2.1]) == np.array([5, 1, 2])).all()
with pytest.raises(Exception):
dt.locate(-1., 9.0)

def test_closest_point():
dt = dt_5_points()
assert dt.closest_point([7.1, 2.1]) == 5
with pytest.raises(Exception):
dt.locate(-1., 9.0)

0 comments on commit 276ff41

Please sign in to comment.