o
    _~#g                  
   @   s$  d dl mZmZmZmZ d dlZd dlZd dl	m
Z
mZmZmZmZ d dlmZ eed dejd ddedd ded	d ded
d dejdejejejgejdddgdd Zejdeed de dejdejejgejdddgdd Zdd ZdS )    )assumeexamplegiven
strategiesN)read_double_with_byteswapread_float_with_byteswapread_uint16_with_byteswapread_uint32_with_byteswapread_uint64_with_byteswap   )	min_value)read_offsetnumberi   )r   r   l        l            int_typeshould_byteswapTFc                 C   s,   t |dd|dj  k  t||| | d S )N      r   )r   itemsize_test)r   r   r   r    r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/io/sas/test_byteswap.pytest_int_byteswap   s   r   z*ignore:overflow encountered:RuntimeWarning
float_typec                 C   s   t ||| | d S )N)r   )r   r   r   r   r   r   r   test_float_byteswap    s   r   c              
   C   s   || } t jdjddddd}| d  d|||| j < t jtt jt	t j
tt jtt jtit|  }||t|||}|rJt||   d S t||  d S )Nr   r         uint8)sizedtype)nprandomdefault_rngintegersviewr   float32r   float64r   uint16r   uint32r	   uint64r
   typebytestmassert_equalbyteswap)r   number_typer   r   data	swap_funcoutput_numberr   r   r   r   (   s   r   )
hypothesisr   r   r   r   stnumpyr   pytestpandas._libs.byteswapr   r   r   r	   r
   pandas._testing_testingr+   r"   markparametrizer&   r'   r(   r   filterwarningsfloatsr$   r%   r   r   r   r   r   r   <module>   s$    



