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: //proc/thread-self/root/usr/local/lib/python3.7/test/__pycache__/test_pow.cpython-37.pyc
B

��gw�@s.ddlZGdd�dej�Zedkr*e��dS)�Nc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�PowTestc
Cs�|tk�rXxvtdd�D]h}|�t||�d�d�|�t||�d�||��|�t|d�d�|d��|�t|d�d�|d��qWx0tdd�D]"}|�t||�d�|||�q�Wd}x4tdd�D]&}|�td	|�|�|d
kr�|d	}q�WxhtfD]^}xXttdd��ttdd��D]8}||�}x(tdd
�D]}||�}t||��q0W�qWq�Wx\ttfD]P}xHtdd�D]:}|d�}||d�}	|	dk�r��qr|�tt||	��qrW�qbWd\}
}d\}}
d\}}|j}|tk�r�d}
|j}n"|tk�r�d}n|tk�rd\}}
x�t|
|d�D]�}x�t||
d�D]�}xxt||d�D]f}|dk�rD|tk�sf|dk�r�|�t	t||�||��qD|t||�||�t||�|�||���qDW�q0W�qWdS)Ni���i�r�i�����d����i�����
�g$@)i���)����)i����r	)r�)
�float�range�assertEqual�pow�int�listZassertRaises�ZeroDivisionErrorZassertAlmostEqual�	TypeError)�self�type�iZpow2Z	othertype�ii�jZjjZzeroZexpZilZihZjlZjh�klZkhZasseq�k�r�)/usr/local/lib/python3.7/test/test_pow.py�powtests^
""





zPowTest.powtestcCs|�t�dS)N)r r)rrrr�test_powint;szPowTest.test_powintcCs|�t�dS)N)r r)rrrr�
test_powfloat>szPowTest.test_powfloatc
Cs|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��|�tdd�dtddd��x�tdd	�D]�}x�td
d�D]�}x�tdd	�D]r}|d
k�r�|d
k�r�|�t||�|t|||��|d
k�r�|d
k�r�|�tt|�|�|tt|�||���q�W�q�W�qtWdS)
Nr�i����r������r
i����r
r�i����)rrrr)rrrrrrr�
test_otherAs.zPowTest.test_othercCsGdd�d�}d|�dS)Nc@seZdZdd�ZdS)z(PowTest.test_bug643260.<locals>.TestRpowcSsdS)Nr)r�otherrrr�__rpow__asz1PowTest.test_bug643260.<locals>.TestRpow.__rpow__N)�__name__�
__module__�__qualname__r)rrrr�TestRpow`sr-r)rr-rrr�test_bug643260_szPowTest.test_bug643260cCs�|j}d}|t|d�d�|t|d�d�x2tdd�D]$}|t|t|��|d@rTdpVd�q6WxPtdd	�D]B}td
|�}|dr�dp�d}|t||�|�|t||�|�qjW||d�dS)Ng�g��Nݯ�bg�?g��Nݯ��i����r
rrrr
g@)rrrr)r�eq�a�b�nZfivetoZexpectedrrr�test_bug705231es$zPowTest.test_bug705231N)	r*r+r,r r!r"r'r.r3rrrrrs6r�__main__)ZunittestZTestCaserr*�mainrrrr�<module>sw