Skip to content

Commit 67b3ee0

Browse files
committed
Add test for min_constraint
1 parent 16d3dc6 commit 67b3ee0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/transforms/test_transforms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ def test_arguments_are_and_are_not_dict(self):
253253
with pytest.raises(ValueError):
254254
transform.arguments_are_dict()
255255

256+
def test_min_constraint(self):
257+
transform = tio.RandomNoise()
258+
assert transform._parse_range(3, 'name', min_constraint=0) == (0,3)
259+
256260
def test_bad_over_max(self):
257261
transform = tio.RandomNoise()
258262
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)