From 9ab1ffff5071e7dd4d86b334e972cfa6a5159202 Mon Sep 17 00:00:00 2001 From: jevans Date: Sun, 5 Oct 2014 21:03:42 -0400 Subject: [PATCH] add test for two ellipses and one full slice --- glymur/test/test_jp2k.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/glymur/test/test_jp2k.py b/glymur/test/test_jp2k.py index 77d796d..9f6f22b 100644 --- a/glymur/test/test_jp2k.py +++ b/glymur/test/test_jp2k.py @@ -271,6 +271,11 @@ class TestSliceProtocolRead(SliceProtocolBase): expected = self.j2k_data[1, :, :] np.testing.assert_array_equal(actual, expected) + def test_two_ellipsis_and_full_slice(self): + actual = self.j2k[..., ..., :] + expected = self.j2k_data[:] + np.testing.assert_array_equal(actual, expected) + def test_slice_protocol_2d_reduce_resolution(self): d = self.j2k[:] self.assertEqual(d.shape, (800, 480, 3))