Your IP : 216.73.216.213


Current Path : /proc/242857/root/opt/alt/python34/lib64/python3.4/test/__pycache__/
Upload File :
Current File : //proc/242857/root/opt/alt/python34/lib64/python3.4/test/__pycache__/test_unary.cpython-34.pyc

�
g f��@sadZddlZddlmZGdd�dej�Zdd�Zedkr]e�ndS)	zFTest compiler changes for unary ops (+, -, ~) introduced in Python 2.2�N)�run_unittestc@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/python34/lib64/python3.4/test/test_unary.py�
test_negativeszUnaryOpTestCase.test_negativecCsd|jdd�|jdd�|jdd�|jd	d�|jd
d�|jdd�dS)Nrr�@�@rrrrrrr
)r)rr	r	r
�
test_positiveszUnaryOpTestCase.test_positivecCsJ|jddk�|jdd�|jdd�|jdd	k�dS)
Nrrrrrrrrr)rr)rr	r	r
�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)rZninesr	r	r
�test_no_overflows
z UnaryOpTestCase.test_no_overflowcCsD|jdd�|jd
d�|jd
d�|jdd�dS)Nr����ri����i����ri����i����ri�i�rr)r)rr	r	r
�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�opr	r	r
�test_bad_types,s

zUnaryOpTestCase.test_bad_typesN)	�__name__�
__module__�__qualname__rrrrrr r	r	r	r
rsrcCstt�dS)N)rrr	r	r	r
�	test_main5sr$�__main__)�__doc__ZunittestZtest.supportrZTestCaserr$r!r	r	r	r
�<module>s/