U
    #c                     @   s:   d dl mZ d dlZd dlZd dlmZ G dd dZdS )    )assert_N)sctypesc                   @   s4   e Zd Zdd Zdd Zdd Zdd Zd	d
 ZdS )TestABCc                 C   s   t ttjtj t ttjtj t ttjtj t ttj	tj
 t ttjtj t ttjtj t ttjtj d S )N)r   
issubclassnpnumbernumbersNumberZinexactComplexZcomplexfloatingZfloatingRealintegerIntegralZsignedintegerZunsignedinteger)self r   =/tmp/pip-unpacked-wheel-b2rbor69/numpy/core/tests/test_abc.pytest_abstract	   s    zTestABC.test_abstractc                 C   s   t d D ]t}tt| tj|j d tt|tj|j d tt| tj |j d tt|tj |j d qd S )Nfloatz is not instance of Realz is not subclass of Realz is instance of Rationalz is subclass of Rational)r   r   
isinstancer   r   __name__r   Rationalr   tr   r   r   test_floats   s    



zTestABC.test_floatsc                 C   s   t d D ]t}tt| tj|j d tt|tj|j d tt| tj |j d tt|tj |j d qd S )Ncomplexz is not instance of Complexz is not subclass of Complexz is instance of Realz is subclass of Real)r   r   r   r   r
   r   r   r   r   r   r   r   test_complex   s    



zTestABC.test_complexc                 C   sH   t d D ]:}tt| tj|j d tt|tj|j d qd S )Nint is not instance of Integral is not subclass of Integralr   r   r   r   r   r   r   r   r   r   r   test_int*   s    

zTestABC.test_intc                 C   sH   t d D ]:}tt| tj|j d tt|tj|j d qd S )NZuintr   r   r   r   r   r   r   	test_uint1   s    

zTestABC.test_uintN)r   
__module____qualname__r   r   r   r   r    r   r   r   r   r      s
   r   )Znumpy.testingr   r   Znumpyr   Znumpy.core.numerictypesr   r   r   r   r   r   <module>   s   