def test_extract_array_1d_even():
 assert np.all((extract_array(np.arange(4), (2,), (0,), fill_value=(-99)) == np.array([(-99), 0])))
 for i in [1, 2, 3]:
  assert np.all((extract_array(np.arange(4), (2,), (i,)) == np.array([(i - 1), i])))
 assert np.all((extract_array(np.arange(4.0), (2,), (4,), fill_value=np.inf) == np.array([3, np.inf])))

def test_extract_array_1d_even ( ) : assert np . all ( ( extract_array ( np . arange ( 4 ) , ( 2 , ) , ( 0 , ) , fill_value = ( - 99 ) ) == np . array ( [ ( - 99 ) , 0 ] ) ) ) for i in [ 1 , 2 , 3 ] : assert np . all ( ( extract_array ( np . arange ( 4 ) , ( 2 , ) , ( i , ) ) == np . array ( [ ( i - 1 ) , i ] ) ) ) assert np . all ( ( extract_array ( np . arange ( 4.0 ) , ( 2 , ) , ( 4 , ) , fill_value = np . inf ) == np . array ( [ 3 , np . inf ] ) ) )
extract 1 d arrays .