
    G/Ph_                     @    d dl Zd dlmZ d dlmZ  G d d          ZdS )    N)array_utils)assert_equalc                   &    e Zd Zd Zd Zd Zd ZdS )TestByteBoundsc                     t          j        d                              dd          }t          j        |          \  }}t          ||z
  |j        |j        z             d S N         )nparangereshaper   byte_boundsr   sizeitemsize)selfalowhighs       `/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/numpy/lib/tests/test_array_utils.pytest_byte_boundszTestByteBounds.test_byte_bounds   sX     IbMM!!!Q''+A..	TTCZ!*!455555    c                     t          j        d                              dd          }|j        }t	          j        |          \  }}t          ||z
  |j        |j        z             d S r   	r   r   r   Tr   r   r   r   r   r   r   br   r   s        r   "test_unusual_order_positive_stridez1TestByteBounds.test_unusual_order_positive_stride   s]    IbMM!!!Q''C+A..	TTCZ!*!455555r   c                     t          j        d                              dd          }|j        d d d         }t	          j        |          \  }}t          ||z
  |j        |j        z             d S )Nr	   r
   r   r   r   s        r   "test_unusual_order_negative_stridez1TestByteBounds.test_unusual_order_negative_stride   sg    IbMM!!!Q''C"I+A..	TTCZ!*!455555r   c                     t          j        d          }|d d d         }t          j        |          \  }}t	          ||z
  |j        dz  |j        z  |j        z
             d S )Nr	      )r   r   r   r   r   r   r   r   s        r   test_stridedzTestByteBounds.test_strided   sb    IbMMcccF+A..	T 	TCZ!aj!81:!EFFFFFr   N)__name__
__module____qualname__r   r   r!   r$    r   r   r   r      sU        6 6 66 6 66 6 6G G G G Gr   r   )numpyr   	numpy.libr   numpy.testingr   r   r(   r   r   <module>r,      sq        ! ! ! ! ! ! & & & & & &G G G G G G G G G Gr   