
    sh                         S SK r S SKrS SKJr  S SKJr  S r " S S\R                  5      r\R                  5         \
S:X  a  \R                  " 5         gg)    N)njit)typesc                    ^ ^ U U4S jnU$ )Nc                 j   > S n[        T" T5      5      " U5      nU R                  U" S5      S5        g )Nc                 
    U nU$ )N )xys     l/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/tests/test_numconv.pycast'template.<locals>.closure.<locals>.cast	   s    AH       )r   assertAlmostEqual)selfr   cfuncfromtytotys      r   closuretemplate.<locals>.closure   s1    	 T&\"4(uQx+r   r   )r   r   r   s   `` r   templater      s    , Nr   c                   (    \ rS rSrSr\S 5       rSrg)TestNumberConversion   zu
Test all int/float numeric conversion to ensure we have all the external
dependencies to perform these conversions.
c           	          [         R                  [         R                  -  n[        R                  " USS9 H*  u  p#SR                  UUS9n[        X[        X#5      5        M,     g )N   )rztest_{fromty}_to_{toty})r   r   )r   integer_domainreal_domain	itertoolspermutationsformatsetattrr   )clstysr   r   	test_names        r   automatic_populate'TestNumberConversion.automatic_populate   s[    ""U%6%66%223!<LF188>B 9 DICHV$:; =r   r   N)__name__
__module____qualname____firstlineno____doc__classmethodr'   __static_attributes__r   r   r   r   r      s     < <r   r   __main__)r    unittestnumbar   
numba.corer   r   TestCaser   r'   r)   mainr   r   r   <module>r6      sL       	<8,, <   ' ' )zMMO r   