
    xKg                         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j                          e
dk(  r ej                          yy)    N)njit)typesc                       fd}|S )Nc                 j    d } t                     |      }| j                   |d      d       y )Nc                 
    | }|S )N )xys     \/home/alanp/www/video.onchill/myenv/lib/python3.12/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   s3    	 #T&\"4(uQx+r   r   )r   r   r   s   `` r   templater      s    , Nr   c                        e Zd ZdZed        Zy)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j                  ||      }t        | |t        ||             1 y )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   sa    ""U%6%66%223!<LFD188>B 9 DICHVT$:; =r   N)__name__
__module____qualname____doc__classmethodr$   r   r   r   r   r      s     < <r   r   __main__)r   unittestnumbar   
numba.corer   r   TestCaser   r$   r%   mainr   r   r   <module>r0      sN       	<8,, <   ' ' )zHMMO r   