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_complex.cpython-38.opt-1.pyc
U

>��g�x�@s�ddlZddlmZddlmZmZddlmZddlmZm	Z	m
Z
ddlZed�Z
ed�ZGdd	�d	ej�Zd
d�Zedkr�e�dS)
�N)�support)�VALID_UNDERSCORE_LITERALS�INVALID_UNDERSCORE_LITERALS)�random)�atan2�isnan�copysign�inf�nanc@seZdZdd�Zd=dd�Zdd�Zd>dd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zejd d!��Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zejd*d+��Zd,d-�Zd.d/�Zd0d1�Zejd2d3��Zejd4d5��Zejd6d7��Zejd8d9��Z d:d;�Z!d<S)?�ComplexTestcCs�t|t�rdt|t�r>tj�||j|j�tj�||j|j�q�tj�||j|�tj�||jd�n@t|t�r�tj�|||j�tj�|d|j�ntj�|||�dS)N�)�
isinstance�complex�unittest�TestCase�assertAlmostEqual�real�imag��self�a�b�r�0/opt/cppython/lib/python3.8/test/test_complex.pyrs


zComplexTest.assertAlmostEqual��&�.>cCs`t|�t|�kr||}}|dkr.t|�|kS|dkrBt|�|kS|�t|||�|k�dS)z+Return true iff floats x and y "are close".rN)�abs�
assertTrue�r�x�yZepsrrr�assertCloseAbss
zComplexTest.assertCloseAbscCstd}t|�st|�r*t|�r^t|�r^dSn4||kr^|dkr>dStd|�td|�krVdS|d7}|�|�||��dS)a#assert that floats x and y are identical, in the sense that:
        (1) both x and y are nans, or
        (2) both x and y are infinities, with the same sign, or
        (3) both x and y are zeros, with the same sign, or
        (4) x and y are both finite and nonzero, and x == y

        z&floats {!r} and {!r} are not identicalNr��?z: zeros have different signs)rr�fail�format)rrr�msgrrr�assertFloatsAreIdentical+sz$ComplexTest.assertFloatsAreIdenticalcCs(|�|j|j|�|�|j|j|�dS)z.Return true iff complexes x and y "are close".N)r rrrrrr�assertCloseBszComplexTest.assertClosecCsp||}|dkr:||}|�||�|�|�}|�||�|dkrl||}|�||�|�|�}|�||�dS)z8Compute complex z=x*y, and check that z/x==y and z/y==x.rN)r&�__truediv__)rrr�z�qrrr�	check_divGs

zComplexTest.check_divcs8dd�tdd�D���fdd��D�}|D]}|D]}|�||�q2q*|�tdd�d�|�tdd�d�td	�D]$}|�tt�t��tt�t���qr|�ttjd
d�|�ttdd�|�	t�d
d
�d�|�ttjd
d�dt
ft
dft
t
ffD]<\}}tdd�t||�}|�t|j
��|�t|j��q�dS)NcSsg|]}t|��qSr)�float)�.0�irrr�
<listcomp>Vsz,ComplexTest.test_truediv.<locals>.<listcomp>����cs g|]}�D]}t||��qqSr)r�r,rr�Zsimple_realrrr.WsgZb���ti��?�N�~h�d��?�?�yZb���ti�?�@y�?�r)�ranger*rr�assertRaises�ZeroDivisionErrorr'�
OverflowError�powr�NANrrrr)rZsimple_complexrrr-Z
denom_realZ
denom_imagr(rr2r�test_truedivUs&�zComplexTest.test_truedivcCs(|�ttjdd�|�ttjdd�dS)N�@y�?r7)r:�	TypeErrorr�__floordiv__�rrrr�
test_floordivqszComplexTest.test_floordivcCs�|�t�ddd>�d�|�t�dd�t�|�t�dd�d�|�t�dd�d�|�t�dd�d�|�t�dd�d�tdd�D]p}|d}|�t�|d	|�d�|�t�|d	|�d�|�t�t||�|�d�|�t�t||�|�d�q�|�t�dd�t�|�t�dd�t�|�t�dd�t�|�t�	dd�t�|�
ttj
dd�|�
ttjdd�|�
ttjdd�|�
ttjdd�|�t�dd�d�|�t�dd�d�|�t�dd�d�|�t�dd�d�dS)
Nr6�i'FTy@@r5gY@r7)�assertIsr�__eq__�__lt__�NotImplemented�__ne__r9�__le__�__gt__�__ge__r:rA�operator�lt�le�gt�ge�eq�ne)rr-�frrr�test_richcompareus0zComplexTest.test_richcomparecs�d�fdd�	}tdd�D]R}d|}d|�|d|tdd��fd	d
��|d|tdd�dd
�t|��q|dtd
d�dd
��dS)NrcsR|D]H}||}t||�}��t�||�||����t�||�||��qdS�N)rrFrGrJ)�nZdeltasZis_equalr�deltar-r(rCrr�check�s

z6ComplexTest.test_richcompare_boundaries.<locals>.checkrE�
�4��ecs|�dkS)Nrr�rY)�multrr�<lambda>��z9ComplexTest.test_richcompare_boundaries.<locals>.<lambda>cSsdS)NFrr_rrrra�rbli����rcSsdS)NTrr_rrrra�rb)r)r9r+)rrZr-r=r)r`rr�test_richcompare_boundaries�s	"z'ComplexTest.test_richcompare_boundariescCs4|�tdjd�|�tdd��|�tdjd�dS)Nr6r7cSsddS)N��p=
ף
@���Q�@rrrrrrra�rbz&ComplexTest.test_mod.<locals>.<lambda>y333333@)r:rA�__mod__rCrrr�test_mod�szComplexTest.test_modcCs$|�ttdd�|�ttdd�dS)Nr6r3r7)r:rA�divmodrCrrr�test_divmod�szComplexTest.test_divmodcCsd|�tdd�d�|�tdd�d�|�ttdd�|�tdd�d�|�tdd	�d
�|�ttddd�d}|�|dd
�|�|ddd
�|�dd
�|�dd
�zd|Wntk
r�YnX|�d
�zddWntk
r�YnX|�d
�|�|d|d�|�|d|d�|�|d|d�|�dd
�d}|�tt||d�dS)Nr6r7r!r8r��?���y���rErdr3z,should fail 0.0 to negative or complex powery@��ii��������ffffff@ffffff@r)rr=r:r;�
ValueError�assertEqualr"rrrr�test_pow�s6

zComplexTest.test_powcCs@td�D] }|�tt�dt�d��q|�tdd��dS)Nr5g���ư>r)r9rrr)rr-rrr�test_boolcontext�szComplexTest.test_boolcontextcCs|�tdd���d�dS)Ng333333@g������#@y333333@������#�)r&r�	conjugaterCrrr�test_conjugate�szComplexTest.test_conjugatec	sGdd�d�}Gdd�dt�}|�t|d��d�|�t|d��d�|�tt|d��|�tt|d��|�tti�|�tt|d��|�tt|d��|�td�d�|�td	�d
�|�td�d
�|�td	�d
�|�td
�d
�|�tdd	�d�|�tdd	�d�|�tdd�d�|�tdd	�d�|�tdd	�d�|�tdd�d�|�tdd	�d�|�tdd	�d�|�tdd�d�|�td
�d
�|�td�d
�|�td�d�|�td�d�|�td
d�d
�|�tdd�d
�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�td�d�|�td�d�|�t�d�|�td�d�|�td�d�|�td�d�|�td�d �|�td!�d"�|�td#�d$�|�td%�d&�|�td'�d"�|�td(�d�|�td)�d�|�td*�d�|�td+�d,�|�td-�d�|�td.�d�|�td/�d�Gd0d1�d1t�}|�t|d2��d2�|�td3d4d5�d6�|�td6d7�d6�|�td6d4d5�d8�|�tdd9d5�d:�d;d<�}|�|tdd�j�|d��|�|tdd=�j�|d=��|�|tdd�j�|d��|�|td=d�j�|d=��d"}|�t|�|k�~|�ttdd�|�ttdd�|�t	td>�|�tt
d?�|�tt
d?�|�ttd?�|�t	td@�|�ttd�|�tdAtd�|�t	tdB�|�t	tdC�|�ttddD�|�ttddE�|�ttddD�|�t	tdF�|�t	tdG�|�t	tdH�|�t	tdI�|�t	tdJ�|�t	tdK�|�t	tdL�|�t	tdM�|�t	tdN�|�t	tdO�|�t	tdP�|�t	tdQ�|�tdRtddSid�|�tdTtdddSi�|�t	tdU�|�t	tdV�|�t	tdW�|�t
tdX��t�|�tdY�d2�|�t	tdZ�Gd[d\�d\t��G�fd]d^�d^�}|��t|��Gd_d`�d`�}|�t|da��dE�|�t|db�|dc�d5�d6�|�tt|d��Gddde�de�}|�t|dE��df�|�tdg|dE��dh�|�tt|dSdi��|�ttdg|dSdi��Gdjdk�dk�}	|�tt|	��|�ttdg|	��Gdldm�dmt�}
Gdndo�dot�}Gdpd1�d1t�}|�t|
d��dq�|�t��|�t|d��dr�W5QRX|�tt|d��dS)sNc@seZdZdd�Zdd�ZdS)z(ComplexTest.test_constructor.<locals>.OScSs
||_dSrW��value�rrvrrr�__init__�rbz1ComplexTest.test_constructor.<locals>.OS.__init__cSs|jSrWrurCrrr�__complex__�rbz4ComplexTest.test_constructor.<locals>.OS.__complex__N��__name__�
__module__�__qualname__rxryrrrr�OS�sr~c@seZdZdd�Zdd�ZdS)z(ComplexTest.test_constructor.<locals>.NScSs
||_dSrWrurwrrrrx�rbz1ComplexTest.test_constructor.<locals>.NS.__init__cSs|jSrWrurCrrrry�rbz4ComplexTest.test_constructor.<locals>.NS.__complex__Nrzrrrr�NS�sry�?$@g�?rEz1+10jr[y$@g$@r!y��Q�	@g��Q�	@i:y�s@r7rry��Q�	@y��Q�	��1r3�1jriz-1rjz+1z(1+2j)��?@z
(1.3+2.2j)y�������?������@z3.14+1Jy��Q�	@�?z
 ( +3.14-6J )y��Q�	@�z ( +3.14-J )y��Q�	@�z ( +3.14+j )�Jz( j )z+Jz( -j)y��z1e-500z-1e-500jz-1e-500+1e-500jc@seZdZdS)�.ComplexTest.test_constructor.<locals>.complex2N�r{r|r}rrrr�complex2sr�r6��)rry1@7@)ry1@G@y@@y�@cSs
t|d�S)z7Function that produces different results for 0. and -0.��)r)rrrr�split_zerossz1ComplexTest.test_constructor.<locals>.split_zeros��z1+1jjy@@�znot 'NoneType'�z39�2�*z1+z1+1j+1jz--z(1+2jz1+2j)z1+(2j)z	(1+2j)123rz1j+2Z1e1ejz1e++1ejz)1+2j(z7first argument must be a string or a number, not 'dict'r]z,second argument must be a number, not 'dict'z1..1jz1.11.1jz1e1.1jA�11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111u ( 1+1j ) uこんにちはc@seZdZdS)z-ComplexTest.test_constructor.<locals>.EvilExcNr�rrrr�EvilExc_sr�cseZdZ�fdd�ZdS)z1ComplexTest.test_constructor.<locals>.evilcomplexcs��dSrWrrC�r�rrrycsz=ComplexTest.test_constructor.<locals>.evilcomplex.__complex__N)r{r|r}ryrr�rr�evilcomplexbsr�c@seZdZdd�Zdd�ZdS)z,ComplexTest.test_constructor.<locals>.float2cSs
||_dSrWrurwrrrrxisz5ComplexTest.test_constructor.<locals>.float2.__init__cSs|jSrWrurCrrr�	__float__ksz6ComplexTest.test_constructor.<locals>.float2.__float__N)r{r|r}rxr�rrrr�float2hsr�gE@g1@g7@c@seZdZdd�Zdd�ZdS)z-ComplexTest.test_constructor.<locals>.MyIndexcSs
||_dSrWrurwrrrrxssz6ComplexTest.test_constructor.<locals>.MyIndex.__init__cSs|jSrWrurCrrr�	__index__usz7ComplexTest.test_constructor.<locals>.MyIndex.__index__N)r{r|r}rxr�rrrr�MyIndexrsr�yE@�{y�^@E@i�c@seZdZdd�ZdS)z+ComplexTest.test_constructor.<locals>.MyIntcSsdS)Nr�rrCrrr�__int__~sz3ComplexTest.test_constructor.<locals>.MyInt.__int__N)r{r|r}r�rrrr�MyInt}sr�c@seZdZdZdd�ZdS)z.ComplexTest.test_constructor.<locals>.complex0z:Test usage of __complex__() when inheriting from 'complex'cSsdS)N�E@rrCrrrry�sz:ComplexTest.test_constructor.<locals>.complex0.__complex__N�r{r|r}�__doc__ryrrrr�complex0�sr�c@s"eZdZdZddd�Zdd�ZdS)	z.ComplexTest.test_constructor.<locals>.complex1z3Test usage of __complex__() with a __new__() methodr7cSst�|d|�S)Nr])r�__new__rwrrrr��sz6ComplexTest.test_constructor.<locals>.complex1.__new__cSs|SrWrrCrrrry�sz:ComplexTest.test_constructor.<locals>.complex1.__complex__N)r7)r{r|r}r�r�ryrrrr�complex1�s
r�c@seZdZdZdd�ZdS)r�z`Make sure that __complex__() calls fail if anything other than a
            complex is returnedcSsdSrWrrCrrrry�sz:ComplexTest.test_constructor.<locals>.complex2.__complex__Nr�rrrrr��sr��@)�objectrprr:rArrrrro�intr+ZassertRaisesRegex�type�	Exceptionr<ZassertWarns�DeprecationWarning)rr~rr�r��cr�r�r�r�r�r�rr�r�test_constructor�s��zComplexTest.test_constructorcCs,Gdd�dt�}ddtttfD�]}ddtttfD]�}|j||d���t||�}|�|j|�|�|j|�|||�}|�t|�|�|�|j|�|�|j|�t|||��}|�t|�t�|�|j|�|�|j|�|t||��}|�t|�|�|�|j|�|�|j|�W5QRXq6q dS)Nc@seZdZdS)z>ComplexTest.test_constructor_special_numbers.<locals>.complex2Nr�rrrrr��sr�rr�)rr)	r�INFr>ZsubTestr%rrrFr�)rr�rrr(rrr� test_constructor_special_numbers�s&

z,ComplexTest.test_constructor_special_numbersc	s�tD]J�t�fdd�dD��s|�t��t���|�t��t��dd���qtD]2��dkrbqTt�fdd�dD��sT|�tt��qTdS)Nc3s|]}|�kVqdSrWr�r,Zch�Zlitrr�	<genexpr>�sz/ComplexTest.test_underscores.<locals>.<genexpr>ZxXoObB�_r�)Z0_7Z09_99c3s|]}|�kVqdSrWrr�r�rrr��s)	r�anyrpr�eval�replacerr:rorCrr�r�test_underscores�szComplexTest.test_underscorescCsPtdd�D]@}|�t|�tt|d���|d}|�t|�tt|d���q
dS)Nrm�r�@r)r9rp�hashr)rrrrr�	test_hash�szComplexTest.test_hashcCsFdd�tdd�D�}|D](}|�|jd|jddt|��qdS)NcSs.g|]&}tdd�D]}t|d|d��qqS)����	r�g@)r9rr1rrrr.�sz(ComplexTest.test_abs.<locals>.<listcomp>r�r�r]g�?)r9rrrr)rZnums�numrrr�test_abs�szComplexTest.test_abscCs,|jfdd�}|dd�|dd�|dd|jd	�|td
t�d�|td
t�d�|ttd
�d�|ttt�d�|ttd
�d�|td
t�d�|ttt�d�|tdt�d�|tdt�d�|tdt�d�|�dttd���|�dttd���|�dttd���|�dttd���dS)NcSs |t|�|�|t|�|�dSrW��repr�str��vZexpected�test_fnrrr�test�sz'ComplexTest.test_repr_str.<locals>.testy�?@z(1+6j)y�?�z(1-6j)y��z(-1+-0j))r�r!z(1+infj)z(1-infj)rEz(inf+1j)z(-inf+infj)z(nan+1j)z(1+nanj)z
(nan+nanj)r�infjz-infj�nanjy��y@)rpZassertNotEqualrr�r>r��rr�rrr�
test_repr_str�s$

zComplexTest.test_repr_strcCs�|jfdd�}|tdd�d�|tdd�d�|tdd�d	�|tdd�d
�|tdd�d�|tdd�d�|tdd�d
�|tdd�d�dS)NcSs |t|�|�|t|�|�dSrWr�r�rrrr��sz5ComplexTest.test_negative_zero_repr_str.<locals>.testrr!r�r�z(-0+1j)r�z-1jz(-0-1j)Z0jz-0jz(-0+0j)z(-0-0j))rprr�rrr�test_negative_zero_repr_str�sz'ComplexTest.test_negative_zero_repr_strcCs|�dd�dS)Ny��)rprCrrr�test_neg�szComplexTest.test_negc	Cs�d}d}d}zJttjd�}t|||d�|��ttjd�}|�|��d||f�W5|dk	rn|jsn|��t�tj�XdS)Nrdrn�w)�file�rz%s %s
)	�closed�closer�unlinkZTESTFN�open�printrp�read)rrr�forrr�	test_file�szComplexTest.test_filecCsx|�d��d�|�d��d�|�d��d�|�d��d�|�td	t���d
tf�|�ttd	���td
f�dS)Nr�)r!�@y�?�)r!g�r�)rr����)rr�rr)rp�__getnewargs__rr�rCrrr�test_getnewargsszComplexTest.test_getnewargscCs@d\}}|�t|jd�tdd��|�t|jd�tdd��dS)N)r7r�r�rr�)rprr)r�z1�z2rrr�test_plus_minus_0jszComplexTest.test_plus_minus_0jcCsfd}d}d}|�|jd�|�|jd�|�|jd�|�|jd�|�|jd�|�|jt�dS)Nr�y��y��r�g�)r%rrr�)rZz0r�r�rrr�test_negated_imaginary_literalsz*ComplexTest.test_negated_imaginary_literalcCsJ|�td�ttd��|�td�tdt��|�td�ttt��dS)NZ1e500rz-1e500jz-1e500+1.8e308j)rprr�rCrrr�
test_overflow&szComplexTest.test_overflowc
	Cs�dddddddttg	}|dd�|D�7}|D]D}|D]:}t||�}tt|��}|�|j|j�|�|j|j�q4q,td	�td
�}}td|�td|�}}	|D]T}|D]J}t||�}tt|��}|�d|jd|j�|�d|jd|j�q�q�dS)Nrg�ir4g�(�
�0�?go���!	@g�d~�QJcSsg|]
}|�qSrr)r,r�rrrr./sz3ComplexTest.test_repr_roundtrip.<locals>.<listcomp>r	r
)	r�r>rr�r%rrr+r�)
rZvalsrrr(Z	roundtripr	r
r�r�rrr�test_repr_roundtrip,s(

��zComplexTest.test_repr_roundtripcCs&|�tdd�td��|�tdd�td��|�tdd�td��|�tdd�td��|�tdd�td��|�tdd�td��|�tdd�td��|�tdd	�td��d
}|�t|d�t|��|�t|d�t|��|�t|d	�t|��|�t|d�t|��tdd
�}|�t|d�t|��|�t|d�t|��|�t|d	�t|��|�t|d�t|��tdd�}|�t|d�t|��|�t|d�t|��|�t|d	�t|��|�t|d�t|��|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d�|�tdd�d �|�td!d�d"�|�td#d�d$�|�td!d%�d&�|�td!d'�d&�|�td!d(�d)�|�td!d*�d+�|�td!d,�d-�|�td.d/�d0�|�td1d2�d3�|�td1d4�d5�|�td1d6�d7�|�td1d8�d9�|�td1d:�d;�|�td1d<�d=�|�td1d>�d?�|�td@dA�dB�|�td1dC�dD�|�td1dE�dD�|�td1dF�dG�|�tdHdF�dI�|�tdHdJ�dK�|�tdHdL�dM�|�tdNdL�dO�|�tdPdQ�dR�|�tdSdT�dU�|�tdSdV�dW�|�tdSdX�dY�|�tdSdZ�d[�|�td\d�d]�|�td\d^�d_�|�tdSd`�da�|�tdSdb�da�|�tdSdc�dd�|�tdSde�dd�|�tdfdg�dh�|�tdfdZ�di�|�tdfdj�dk�|�tdfdV�dl�|�tdfd^�dm�|�tdfdn�do�|�tdfdp�dq�|�tdrjds�|�td1jdt�duD]}|�tdrj|��qx|�dv�dw�dx�|�tttt�d%�dy�|�ttdzt�d%�d{�|�tttdz�d%�d|�|�tttd}�d%�d~�|�tttt�d'�d�|�ttdzt�d'�d��|�tttdz�d'�d��|�tttd}�d'�d��|�tttt�d%�d��|�ttdzt�d%�d��|�tttdz�d%�d��|�tttd}�d%�d��|�tttt�d'�d��|�ttdzt�d'�d��|�tttdz�d'�d��|�tttd}�d'�d��dS)�Ny�?@r�y�?@y@y������	@r@y������	@�-�<y�$I�$I�?%I�$I�,�Z10rr�r�r�r��3�gz1+3jz0+3jz1.5+3.5jz+gz	+1.5+3.5jy�?�z	+1.5-3.5jz-gz1.5-3.5jz gz	 1.5+3.5jz	 1.5-3.5jy��@z	-1.5+3.5jy���z	-1.5-3.5jy�������z
-1.5-3.5e-20jrUz-1.500000-3.500000j�F�ez-1.500000e+00-3.500000e+00jz.2ez-1.50e+00-3.50e+00jz.2Ez-1.50E+00-3.50E+00jy�����\�z.2Gz-1.5E+10-3.5E+05jy�?@z<20gz1.5+3j              z*<20gz1.5+3j**************z>20gz              1.5+3jz^20gz       1.5+3j       z<20z(1.5+3j)            z>20z            (1.5+3j)z^20z      (1.5+3j)      y+����?�C�l��z^20.2z     (1.1-3.1j)     z20.2fz          1.50+3.00jz>20.2fz<20.2fz1.50+3.00j          y0)�VC D@z150000000000000000000.00+3.00jz>40.2fz(          150000000000000000000.00+3.00jz^40,.2fz(  150,000,000,000,000,000,000.00+3.00j  y|3*�+TTD@z( 1,500,000,000,000,000,000,000.00+3.00j y|3*�+TTDp�@z,.2fz*1,500,000,000,000,000,000,000.00+3,000.00jr6z.0ez1e+00+1e+00jz#.0ez1.e+00+1.e+00jz.0fz1+1jz#.0fz1.+1.jy�������?�������?z1.1+1.1jz#gz1.10000+1.10000jz.1ez1.0e+00+1.0e+00jz#.1ez.1fz1.0+1.0jz#.1fy���?z#fz-1.500000+0.500000jz-2.+0.jz#ez-1.500000e+00+5.000000e-01jz-2.e+00+5.e-01jz-1.50000+0.500000jz.0gz-2+0.5jz#.0gz-2.+0.5jy�?�?Z010fz=20ZbcdoxXz	*{0:.3f}*yn��!	@����	�@z*3.142+2.718j*znan+nanjrEz
1.000000+nanjz
nan+1.000000jrjz
nan-1.000000jzNAN+NANjz
1.000000+NANjz
NAN+1.000000jz
NAN-1.000000jzinf+infjz
1.000000+infjz
inf+1.000000jz
inf-1.000000jzINF+INFjz
1.000000+INFjz
INF+1.000000jz
INF-1.000000j)	rpr#r�rr:ro�
__format__r>r�)rr(�trrr�test_formatHs�

zComplexTest.test_formatN)r)r)"r{r|r}rr r%r&r*r?rDrVrcrfrhrqrrrtr�rZrequires_IEEE_754r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrsH

'C





rcCst�t�dSrW)rZrun_unittestrrrrr�	test_main�sr��__main__)rr�rZtest.test_grammarrrr�mathrrrrNr+r�r>rrr�r{rrrr�<module>s 8

F1le Man4ger