add a test case that handles empty boolean array
@@ -82,6 +82,8 @@ class TestGetItem(unittest.TestCase):
{'slices': [[]], 'sliced_shape': (0, 3, 2)},
{'slices': [[[]]], 'sliced_shape': (1, 0, 3, 2)},
{'slices': ([[]],), 'sliced_shape': (1, 0, 3, 2)},
+ {'slices': numpy.array([], dtype=numpy.bool),
+ 'sliced_shape': (0, 3, 2)},
{'slices': [1, [1]], 'sliced_shape': (1, 2)},
{'slices': [[1], slice(1, 2)], 'sliced_shape': (1, 1, 2)},
{'slices': [1, 0], 'sliced_shape': (2, 3, 2)},
