o
    1&i                     @   sb   d dl Z d dlmZ d dlmZ ddiZddiZdd ZG d	d
 d
e jZ	e
dkr/e   dS dS )    N)jit)typesZforceobjTZnopythonc                 C   s   | | S N )abr   r   FC:\wamp64\www\opt\env\Lib\site-packages\numba/tests/test_python_int.py
return_int
   s   r	   c                   @   sZ   e Zd ZeejdfddZdd ZefddZdd	 Z	efd
dZ
dd ZefddZdS )TestPythonInt)      c                 C   sP   t }t||ffi ||}|| }|| }| t|t| | || d S r   )r	   r   ZassertIstypeassertEqual)selfflagsint_typeoperandsZpyfuncZcfuncexpectedgotr   r   r   test_int_return_type   s   z"TestPythonInt.test_int_return_typec                 C      | j td d S N)r   )r   no_pyobj_flagsr   r   r   r   test_int_return_type_npm      z&TestPythonInt.test_int_return_type_npmc                 C   s   | j tj|d d S )N)r   r   )r   r   Zuint64r   r   r   r   r   test_unsigned_int_return_type   s   z+TestPythonInt.test_unsigned_int_return_typec                 C   r   r   )r   r   r   r   r   r   !test_unsigned_int_return_type_npm"   r   z/TestPythonInt.test_unsigned_int_return_type_npmc                 C   s   | j |dd d S )N)l        l        r   r   r   r   r   r   r   test_long_int_return_type%   s   z'TestPythonInt.test_long_int_return_typec                 C   r   r   )r!   r   r   r   r   r   test_long_int_return_type_npm*   r   z+TestPythonInt.test_long_int_return_type_npmc                 C   s   | j |dd dd fd d S )N   F   K   r   r    r   r   r   r   test_longer_int_return_type-   s   z)TestPythonInt.test_longer_int_return_typeN)__name__
__module____qualname__force_pyobj_flagsr   Zint64r   r   r   r   r!   r"   r&   r   r   r   r   r
      s    
	r
   __main__)ZunittestZnumbar   Z
numba.corer   r*   r   r	   ZTestCaser
   r'   mainr   r   r   r   <module>   s    $