@@ -345,17 +345,31 @@ def test_slice_slice_by_array(self, old_slice, array, size):
345345 pytest .param (
346346 slice (None ), slice (None , 3 ), 5 , slice (0 , 3 , 1 ), id = "full_slice-slice"
347347 ),
348+ pytest .param (
349+ slice (None ), np .arange (2 , 4 ), 5 , np .arange (2 , 4 ), id = "full_slice-array"
350+ ),
351+ pytest .param (slice (None ), 3 , 5 , 3 , id = "full_slice-int" ),
348352 pytest .param (
349353 slice (2 , 12 , 3 ), slice (1 , 3 ), 16 , slice (5 , 11 , 3 ), id = "slice_step-slice"
350354 ),
351355 pytest .param (
352- slice (None ), np .arange (2 , 4 ), 5 , np .arange (2 , 4 ), id = "full_slice-range"
356+ slice (2 , 12 , 3 ),
357+ np .array ([1 , 3 ]),
358+ 16 ,
359+ np .array ([5 , 11 ]),
360+ id = "slice_step-array" ,
353361 ),
354362 pytest .param (
355- np .arange (5 ), slice (1 , 3 ), 7 , np .arange (1 , 3 ), id = "range -slice"
363+ np .arange (5 ), slice (1 , 3 ), 7 , np .arange (1 , 3 ), id = "array -slice"
356364 ),
357- pytest .param (slice (None ), 3 , 5 , 3 , id = "full_slice-int" ),
358- pytest .param (slice (None ), - 2 , 6 , 4 , id = "full_slice-negative_int" ),
365+ pytest .param (
366+ np .arange (0 , 8 , 2 ),
367+ np .arange (1 , 3 ),
368+ 9 ,
369+ np .arange (2 , 6 , 2 ),
370+ id = "array-array" ,
371+ ),
372+ pytest .param (np .arange (3 ), 2 , 5 , 2 , id = "array-int" ),
359373 ),
360374 )
361375 def test_index_indexer_1d (self , old_indexer , indexer , size , expected ):
0 commit comments