Skip to content

Commit d4f2044

Browse files
committed
converting more tests nibabel.tests.test_s*
1 parent 50e7d98 commit d4f2044

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

nibabel/tests/test_spaces.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,15 @@ def get_outspace_params():
7676
)
7777

7878

79-
def test_vox2out_vox():
79+
@pytest.mark.parametrize("arg_tuple", [
80+
# Enforce number of axes
81+
((2, 3, 4, 5), np.eye(4)),
82+
((2, 3, 4, 5, 6), np.eye(4)),
83+
# Voxel sizes must be positive
84+
((2, 3, 4), np.eye(4), [-1, 1, 1]),
85+
((2, 3, 4), np.eye(4), [1, 0, 1])
86+
])
87+
def test_vox2out_vox(arg_tuple):
8088
# Test world space bounding box
8189
# Test basic case, identity, no voxel sizes passed
8290
shape, aff = vox2out_vox(((2, 3, 4), np.eye(4)))

0 commit comments

Comments
 (0)