
    d                        d dl Zd dlZd dlmZ d dlZd dlmZ	 d e	j
        D             Zed e	j        D             z  Z ej        ed eD                       d             Z ej                    d             Zd	 Zd
 ZdS )    N)is_integer_dtypec                 >    g | ]}t          j        g d |          S ))         Ndtypepdarray.0r	   s     d/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/tests/arrays/masked/test_function.py
<listcomp>r   	   s+    	S	S	SU"(???%
0
0
0	S	S	S    c                 >    g | ]}t          j        g d |          S ))g?5^I?gx&ѿgGz@Nr   r
   r   s     r   r   r   
   s;       <ABH)))777  r   c                 &    g | ]}|j         j        S  )r	   name)r   as     r   r   r      s    #A#A#AQAGL#A#A#Ar   )paramsidsc                     | j         S )zi
    Fixture returning parametrized 'data' array with different integer and
    floating point types
    )param)requests    r   datar      s     =r   c                 L    t          |           rt          }n| j        j        }|S )z@
    Fixture returning numpy dtype from 'data' input array.
    )r   floatr	   type)r   numpy_dtypes     r   r    r       s*      &jor   c                    |                                  }t          j        t          j         |                     |d                     | j                  }t          j        ||           |                      d          }t          j        t          j         |                     |d           d          | j                  }t          j        ||           d S )N)r	   na_valuer   r   )decimals)roundr   r   npto_numpyr	   tmassert_extension_array_equal)r   r    resultexpecteds       r   
test_roundr+   %   s    ZZ\\Fx
[4@@AA  H #FH555 ZZZ##Fx
[4@@1MMMj  H #FH55555r   c                 v    |                                  }t          |           }t          j        ||           d S )N)tolistlistr'   assert_equal)r   r)   r*   s      r   test_tolistr0   6   s2    [[]]FDzzHOFH%%%%%r   )numpyr%   pytestpandas.core.dtypes.commonr   pandasr   pandas._testing_testingr'   ALL_INT_EA_DTYPESarraysFLOAT_EA_DTYPESfixturer   r    r+   r0   r   r   r   <module>r;      s        6 6 6 6 6 6          	S	Sb>R	S	S	S   EGEW   
 v#A#A&#A#A#ABBB  CB 	 	 	6 6 6"& & & & &r   