Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
18
venv/Lib/site-packages/skimage/draw/tests/test_draw_nd.py
Normal file
18
venv/Lib/site-packages/skimage/draw/tests/test_draw_nd.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from skimage.draw import line_nd
|
||||
from skimage._shared.testing import assert_equal
|
||||
|
||||
|
||||
def test_empty_line():
|
||||
coords = line_nd((1, 1, 1), (1, 1, 1))
|
||||
assert len(coords) == 3
|
||||
assert all(len(c) == 0 for c in coords)
|
||||
|
||||
|
||||
def test_zero_line():
|
||||
coords = line_nd((-1, -1), (2, 2))
|
||||
assert_equal(coords, [[-1, 0, 1], [-1, 0, 1]])
|
||||
|
||||
|
||||
def test_no_round():
|
||||
coords = line_nd((0.5, 0), (2.5, 0), integer=False, endpoint=True)
|
||||
assert_equal(coords, [[0.5, 1.5, 2.5], [0, 0, 0]])
|
Loading…
Add table
Add a link
Reference in a new issue