o
    1Î®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ÚNumberÚinexactÚComplexÚcomplexfloatingÚfloatingÚRealÚintegerÚIntegralÚsignedintegerÚunsignedinteger)Úself© r   ú@/tmp/pip-target-vg8gfxp4/lib/python/numpy/core/tests/test_abc.pyÚtest_abstract	   s   zTestABC.test_abstractc                 C   ó‚   t d D ]:}tt|ƒ tjƒd |j¡ƒ tt|tjƒd |j¡ƒ tt|ƒ tjƒ d |j¡ƒ tt|tjƒ d |j¡ƒ qd S )NÚfloatz{0} is not instance of Realz{0} is not subclass of Realz{0} is instance of Rationalz{0} is subclass of Rational)	r   r   Ú
isinstancer   r   ÚformatÚ__name__r   ÚRational©r   Útr   r   r   Útest_floats   ó   
ÿ
ÿ
ÿ
ÿùzTestABC.test_floatsc                 C   r   )NÚcomplexz{0} is not instance of Complexz{0} is not subclass of Complexz{0} is instance of Realz{0} is subclass of Real)	r   r   r   r   r   r   r   r   r   r   r   r   r   Útest_complex   r    zTestABC.test_complexc                 C   óH   t d D ]}tt|ƒ tjƒd |j¡ƒ tt|tjƒd |j¡ƒ qd S )NÚintú{0} is not instance of Integralú{0} is not subclass of Integral©r   r   r   r   r   r   r   r   r   r   r   r   Útest_int*   ó   
ÿ
ÿýzTestABC.test_intc                 C   r#   )NÚuintr%   r&   r'   r   r   r   r   Ú	test_uint1   r)   zTestABC.test_uintN)r   Ú
__module__Ú__qualname__r   r   r"   r(   r+   r   r   r   r   r      s    r   )Únumpy.testingr   r   Únumpyr   Únumpy.core.numerictypesr   r   r   r   r   r   Ú<module>   s
    