From bb3bd34686855ff2355e0c46da5647c2038507d5 Mon Sep 17 00:00:00 2001 From: Pratap Vardhan Date: Mon, 16 Nov 2015 12:49:27 +0530 Subject: [PATCH] TST: Aseert check values for older test_gray2rgb case --- skimage/color/tests/test_colorconv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skimage/color/tests/test_colorconv.py b/skimage/color/tests/test_colorconv.py index 71e2d849..4c991416 100644 --- a/skimage/color/tests/test_colorconv.py +++ b/skimage/color/tests/test_colorconv.py @@ -439,6 +439,8 @@ def test_gray2rgb(): assert_equal(y.shape, (3, 1, 3)) assert_equal(y.dtype, x.dtype) + assert_equal(y[..., 0], x) + assert_equal(y[0, 0, :], [0, 0, 0]) x = np.array([[0, 128, 255]], dtype=np.uint8) z = gray2rgb(x)