o
    Ɲi_                     @   s2   d dl Zd dlmZ d dlmZ G dd dZdS )    N)array_utils)assert_equalc                   @   s,   e Zd Zdd Zdd Zdd Zdd Zd	S )
TestByteBoundsc                 C   s:   t ddd}t|\}}t|| |j|j  d S N         )nparangereshaper   byte_boundsr   sizeitemsize)selfalowhigh r   \/var/www/html/ocr-read/venv/lib/python3.10/site-packages/numpy/lib/tests/test_array_utils.pytest_byte_bounds   s   zTestByteBounds.test_byte_boundsc                 C   s@   t ddd}|j}t|\}}t|| |j|j  d S r   	r	   r
   r   Tr   r   r   r   r   r   r   br   r   r   r   r   "test_unusual_order_positive_stride   s   z1TestByteBounds.test_unusual_order_positive_stridec                 C   sJ   t ddd}|jd d d }t|\}}t|| |j|j  d S )Nr   r   r   r   r   r   r   r   "test_unusual_order_negative_stride   s   z1TestByteBounds.test_unusual_order_negative_stridec                 C   sJ   t d}|d d d }t|\}}t|| |jd |j |j  d S )Nr      )r	   r
   r   r   r   r   r   r   r   r   r   test_strided   s   
$zTestByteBounds.test_stridedN)__name__
__module____qualname__r   r   r   r   r   r   r   r   r      s
    r   )numpyr	   	numpy.libr   numpy.testingr   r   r   r   r   r   <module>   s    