o
    ŗ„g_  ć                   @   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   śW/var/www/visachat/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    