HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/__pycache__/test_abstract_numbers.cpython-310.pyc
o

�i��@s^dZddlZddlZddlZddlmZmZmZmZGdd�dej	�Z
edkr-e��dSdS)zUnit tests for numbers.py.�N)�Complex�Real�Rational�Integralc@s$eZdZdd�Zdd�Zdd�ZdS)�TestNumberscCs�|�ttt��|�ttt��|�dtd�j�|�dtd�j�|�dtd����|�dtd����|�dtd�j	�|�dtd�j
�dS)N�ri�����)�
assertTrue�
issubclass�intrr�assertEqual�real�imag�	conjugate�	numerator�denominator��self�r�7/usr/local/lib/python3.10/test/test_abstract_numbers.py�test_int	szTestNumbers.test_intcCsp|�ttt��|�ttt��|�dtd�j�|�dtd�j�|�dtd��	��|�dtd��	��dS)Ng333333@rg333333�)
�assertFalser
�floatrr	rrr
rrrrrr�
test_floatszTestNumbers.test_floatcCs�|�ttt��|�ttt��tdd�tdd�}}|�ttj	|�|�tt
j||�|�tt||�|�tt
j
||�|�tt|�|�tt|�dS)N���r)rr
�complexrr	rZassertRaises�	TypeError�math�trunc�operator�mod�divmod�floordivrr)r�c1�c2rrr�test_complexszTestNumbers.test_complexN)�__name__�
__module__�__qualname__rrr'rrrrrs	r�__main__)
�__doc__rr!ZunittestZnumbersrrrrZTestCaserr(�mainrrrr�<module>s#�