Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/__pycache__/test_unary.cpython-35.pyc



��Yf��@sEdZddlZGdd�dej�ZedkrAej�dS)zFTest compiler changes for unary ops (+, -, ~) introduced in Python 2.2�Nc@sXeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�UnaryOpTestCasecCsp|jddk�|jdd�|jd	d�|jd
dk�|jdd
k�|jddk�dS)N�rg@y@���rrrrrrg�g�y��y�)�
assertTrue�assertEqual)�self�r�4/opt/alt/python35/lib64/python3.5/test/test_unary.py�
test_negativeszUnaryOpTestCase.test_negativecCsd|jdd�|jdd�|jdd�|jd	d�|jd
d�|jdd�dS)Nrr�@�@rrrrrrr)r)rrrr	�
test_positiveszUnaryOpTestCase.test_positivecCsJ|jddk�|jdd�|jdd�|jdd	k�dS)
Nrrrrrrrrr)rr)rrrr	�test_invertszUnaryOpTestCase.test_invertcCsedd}|jtd|�d	k�|jtd|�dk�|jtd|�dk�dS)N�9� �+�
��-�~l>g-��-�;l��>g-��-�;l>g-��-�;l��>g-��-�;l������>g-��-�;l>g-��-�;l��>g-��-�;l����>g-��-�;)r�eval)rZninesrrr	�test_no_overflows
z UnaryOpTestCase.test_no_overflowcCsD|jdd�|jd
d�|jd
d�|jdd�dS)Nr����ri����i����ri����i����ri�i�rr)r)rrrr	�test_negation_of_exponentiation#sz/UnaryOpTestCase.test_negation_of_exponentiationcCsix<dD]4}|jtt|d�|jtt|d�qW|jttd�|jttd�dS)	Nrrrzb'a'z'a'z~2jz~2.0)rrr)ZassertRaises�	TypeErrorr)r�oprrr	�test_bad_types+s

zUnaryOpTestCase.test_bad_typesN)	�__name__�
__module__�__qualname__r
r
rrrrrrrr	rsr�__main__)�__doc__ZunittestZTestCaserr �mainrrrr	�<module>s/