@@ -244,25 +244,22 @@ def test_get_reverse_indexer(self):
244
244
tm .assert_numpy_array_equal (result , expected )
245
245
246
246
@pytest .mark .parametrize ("dtype" , ["int64" , "int32" ])
247
- def test_array_equal_fast (self , dtype ):
247
+ def test_is_range_indexer (self , dtype ):
248
248
# GH#50592
249
- left = np .arange (1 , 100 , dtype = dtype )
250
- right = np .arange (1 , 100 , dtype = dtype )
251
- assert lib .array_equal_fast (left , right )
249
+ left = np .arange (0 , 100 , dtype = dtype )
250
+ assert lib .is_range_indexer (left , 100 )
252
251
253
252
@pytest .mark .parametrize ("dtype" , ["int64" , "int32" ])
254
- def test_array_equal_fast_not_equal (self , dtype ):
253
+ def test_is_range_indexer_not_equal (self , dtype ):
255
254
# GH#50592
256
255
left = np .array ([1 , 2 ], dtype = dtype )
257
- right = np .array ([2 , 2 ], dtype = dtype )
258
- assert not lib .array_equal_fast (left , right )
256
+ assert not lib .is_range_indexer (left , 2 )
259
257
260
258
@pytest .mark .parametrize ("dtype" , ["int64" , "int32" ])
261
- def test_array_equal_fast_not_equal_shape (self , dtype ):
259
+ def test_is_range_indexer_not_equal_shape (self , dtype ):
262
260
# GH#50592
263
- left = np .array ([1 , 2 , 3 ], dtype = dtype )
264
- right = np .array ([2 , 2 ], dtype = dtype )
265
- assert not lib .array_equal_fast (left , right )
261
+ left = np .array ([0 , 1 , 2 ], dtype = dtype )
262
+ assert not lib .is_range_indexer (left , 2 )
266
263
267
264
268
265
def test_cache_readonly_preserve_docstrings ():
0 commit comments