Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_abstract_numbers.cpython-38.pyc
U

>��g��@sZdZddlZddlZddlZddlmZmZmZmZGdd�dej	�Z
edkrVe��dS)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�9/opt/cppython/lib/python3.8/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#

F1le Man4ger