
    J/Ph                         d dl Z d dlZd dlmZ d dlmZ d Z G d dej                  Ze	                                 e
dk    r ej                     dS dS )    N)njit)typesc                       fd}|S )Nc                     d } t                               |          }|                      |d          d           d S )Nc                 
    | }|S )N )xys     X/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/numba/tests/test_numconv.pycastz'template.<locals>.closure.<locals>.cast	   s    AH       )r   assertAlmostEqual)selfr   cfuncfromtytotys      r   closureztemplate.<locals>.closure   sW    	 	 	 #TT&\\""4((uuQxx+++++r   r   )r   r   r   s   `` r   templater      s)    , , , , , , Nr   c                   (    e Zd ZdZed             ZdS )TestNumberConversionz
    Test all int/float numeric conversion to ensure we have all the external
    dependencies to perform these conversions.
    c           	          t           j        t           j        z  }t          j        |d          D ];\  }}d                    ||          }t          | |t          ||                     <d S )N   )rztest_{fromty}_to_{toty})r   r   )r   integer_domainreal_domain	itertoolspermutationsformatsetattrr   )clstysr   r   	test_names        r   automatic_populatez'TestNumberConversion.automatic_populate   s    "U%66%23!<<< 	< 	<LFD188>B 9 D DICHVT$:$:;;;;	< 	<r   N)__name__
__module____qualname____doc__classmethodr$   r   r   r   r   r      s9          < < [< < <r   r   __main__)r   unittestnumbar   
numba.corer   r   TestCaser   r$   r%   mainr   r   r   <module>r0      s                    	 	 	< < < < <8, < < <   ' ' ) ) )zHMOOOOO r   