mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Restore test_float_out_of_range
This commit is contained in:
1 parent
4377c647f4
commit
dad16f8a29
1 file changed
+7
@@ -69,6 +69,13 @@ def test_unsupported_dtype():
|
||||
assert_raises(ValueError, img_as_int, x)
|
||||
|
||||
|
||||
def test_float_out_of_range():
|
||||
too_high = np.array([2], dtype=np.float32)
|
||||
assert_raises(ValueError, img_as_int, too_high)
|
||||
too_low = np.array([-2], dtype=np.float32)
|
||||
assert_raises(ValueError, img_as_int, too_low)
|
||||
|
||||
|
||||
def test_copy():
|
||||
x = np.array([1], dtype=np.float64)
|
||||
y = img_as_float(x)
|
||||
|
||||
Reference in new issue
Block a user