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: //usr/local/lib/python3.7/test/__pycache__/test_complex.cpython-37.pyc
B

��g�v�@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)Ng)�
isinstance�complex�unittest�TestCase�assertAlmostEqual�real�imag)�self�a�b�r�-/usr/local/lib/python3.7/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�y�epsrrr�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 identicalNgg�?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)rrr)rrrrrrr�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�}x&|D]}x|D]}|�||�q6Wq,W|�tdd�d�|�tdd�d�x0td	�D]$}|�tt�t��tt�t���q|W|�ttjd
d�|�t�dd
�d
�|�ttjd
d�xVdtftdfttfgD]<\}}tdd�t||�}|�	t
|j��|�	t
|j��q�WdS)NcSsg|]}t|��qSr)�float)�.0�irrr�
<listcomp>Vsz,ComplexTest.test_truediv.<locals>.<listcomp>����cs g|]}�D]}t||��qqSr)r
)r)rr)�simple_realrrr+WsgZb���tiy�?g��N�~h�dy�?�?yy@y�?�r)
�ranger'r
r�assertRaises�ZeroDivisionErrorr$r�NANrrrr)rZsimple_complexrrr*Z
denom_realZ
denom_imagr%r)r.r�test_truedivUs"

 zComplexTest.test_truedivcCs(|�ttjdd�|�ttjdd�dS)Ny@y�?y)r1�	TypeErrorr
�__floordiv__)rrrr�
test_floordivrszComplexTest.test_floordivcCs�|�t�ddd>�d�|�t�dd�t�|�t�dd�d�|�t�dd�d�|�t�dd�d�|�t�dd�d�x~tdd�D]p}|d}|�t�|d	|�d�|�t�|d	|�d�|�t�t||�|�d�|�t�t||�|�d�q�W|�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)
Ny�?�?�i'FTy@@r/gY@y)�assertIsr
�__eq__�__lt__�NotImplemented�__ne__r0�__le__�__gt__�__ge__r1r5�operator�lt�le�gt�ge�eq�ne)rr*�frrr�test_richcomparevs0zComplexTest.test_richcomparecs�d�fdd�	}x`tdd�D]R}d|}d|�|d|tdd��fd	d
��|d|tdd�dd
�t|��qW|dtd
d�dd
��dS)N�csVxP|D]H}||}t||�}��t�||�||����t�||�||��qWdS)N)r
r9r:r=)�nZdeltasZis_equalr�deltar*r%)rrr�check�s


z6ComplexTest.test_richcompare_boundaries.<locals>.checkr8�
�4��ecs|�dkS)Nrr)rL)�multrr�<lambda>��z9ComplexTest.test_richcompare_boundaries.<locals>.<lambda>cSsdS)NFr)rLrrrrS�rTli����rcSsdS)NTr)rLrrrrS�rT)rJ)r0r()rrMr*�powr)rRrr�test_richcompare_boundaries�s	$z'ComplexTest.test_richcompare_boundariescCs4|�tdjd�|�tdd��|�tdjd�dS)Ny�?�?ycSsddS)Ny�p=
ף
@���Q�@rrrrrrrS�rTz&ComplexTest.test_mod.<locals>.<lambda>y333333@)r1r5�__mod__)rrrr�test_mod�szComplexTest.test_modcCs$|�ttdd�|�ttdd�dS)Ny�?�?y�?y)r1r5�divmod)rrrr�test_divmod�szComplexTest.test_divmodcCsd|�tdd�d�|�tdd�d�|�ttdd�|�tdd�d�|�tdd	�d
�|�ttddd�d}|�|dd
�|�|ddd
�|�dd
�|�dd
�yd|Wntk
r�YnX|�d
�yddWntk
r�YnX|�d
�|�|d|d�|�|d|d�|�|d|d�|�dd
�d}|�tt||d�dS)Ny�?�?yg�?y@gy�?���y���r8y�p=
ף
@���Q�@y�?z,should fail 0.0 to negative or complex powery@��ii����i��yffffff@ffffff@r)rrUr1r2�
ValueError�assertEqualr)rrrrrr�test_pow�s6

zComplexTest.test_powcCsDx,td�D] }|�tt�dt�d��q
W|�tdd��dS)Nr/g���ư>g)r0rr
r)rr*rrr�test_boolcontext�s zComplexTest.test_boolcontextcCs|�tdd���d�dS)Ng333333@g������#@y333333@������#�)r#r
�	conjugate)rrrr�test_conjugate�szComplexTest.test_conjugatec
	s�Gdd�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�det�}Gdfdg�dgt�}	Gdhd1�d1t�}|�t|d��di�|�t��|�t|	d��dj�WdQRX|�tt|d��dS)kNc@seZdZdd�Zdd�ZdS)z(ComplexTest.test_constructor.<locals>.OScSs
||_dS)N)�value)rrdrrr�__init__�rTz1ComplexTest.test_constructor.<locals>.OS.__init__cSs|jS)N)rd)rrrr�__complex__�rTz4ComplexTest.test_constructor.<locals>.OS.__complex__N)�__name__�
__module__�__qualname__rerfrrrr�OS�srjc@seZdZdd�Zdd�ZdS)z(ComplexTest.test_constructor.<locals>.NScSs
||_dS)N)rd)rrdrrrre�rTz1ComplexTest.test_constructor.<locals>.NS.__init__cSs|jS)N)rd)rrrrrf�rTz4ComplexTest.test_constructor.<locals>.NS.__complex__N)rgrhrirerfrrrr�NS�srky�?$@g�?r8z1+10jrNy$@g$@g�?y��Q�	@g��Q�	@i:y�s@ygry��Q�	@y��Q�	��1y�?�1jy�?z-1r[z+1z(1+2j)y�?@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)z.ComplexTest.test_constructor.<locals>.complex2N)rgrhrirrrr�complex2sroy�?�?��)rry1@7@)ry1@G@y@@y�@cSs
t|d�S)z7Function that produces different results for 0. and -0.g�)r)rrrr�split_zeros sz1ComplexTest.test_constructor.<locals>.split_zerosg�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'rPz,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>.EvilExcN)rgrhrirrrr�EvilExc`srwcseZdZ�fdd�ZdS)z1ComplexTest.test_constructor.<locals>.evilcomplexcs��dS)Nr)r)rwrrrfdsz=ComplexTest.test_constructor.<locals>.evilcomplex.__complex__N)rgrhrirfr)rwrr�evilcomplexcsrxc@seZdZdd�Zdd�ZdS)z,ComplexTest.test_constructor.<locals>.float2cSs
||_dS)N)rd)rrdrrrrejsz5ComplexTest.test_constructor.<locals>.float2.__init__cSs|jS)N)rd)rrrr�	__float__lsz6ComplexTest.test_constructor.<locals>.float2.__float__N)rgrhrireryrrrr�float2isrzgE@g1@g7@c@seZdZdZdd�ZdS)z.ComplexTest.test_constructor.<locals>.complex0z:Test usage of __complex__() when inheriting from 'complex'cSsdS)NyE@r)rrrrrfusz:ComplexTest.test_constructor.<locals>.complex0.__complex__N)rgrhri�__doc__rfrrrr�complex0ssr|c@s"eZdZdZddd�Zdd�ZdS)	z.ComplexTest.test_constructor.<locals>.complex1z3Test usage of __complex__() with a __new__() method�cSst�|d|�S)NrP)r
�__new__)rrdrrrr~zsz6ComplexTest.test_constructor.<locals>.complex1.__new__cSs|S)Nr)rrrrrf|sz:ComplexTest.test_constructor.<locals>.complex1.__complex__N)r})rgrhrir{r~rfrrrr�complex1xs
rc@seZdZdZdd�ZdS)z.ComplexTest.test_constructor.<locals>.complex2z`Make sure that __complex__() calls fail if anything other than a
            complex is returnedcSsdS)Nr)rrrrrf�sz:ComplexTest.test_constructor.<locals>.complex2.__complex__N)rgrhrir{rfrrrrrosyE@y@)�objectr_r
r1r5rrrrr^�intr(ZassertRaisesRegex�type�	ExceptionZassertWarns�DeprecationWarning)
rrjrkrorr�crxrzr|rr)rwr�test_constructor�s�zComplexTest.test_constructorcCs8Gdd�dt�}�x ddtttfD�]
}�xddtttfD]�}|j||d���t||�}|�|j|�|�|j|�|||�}|�t|�|�|�|j|�|�|j|�t|||��}|�t|�t�|�|j|�|�|j|�|t||��}|�t|�|�|�|j|�|�|j|�WdQRXq>Wq$WdS)Nc@seZdZdS)z>ComplexTest.test_constructor_special_numbers.<locals>.complex2N)rgrhrirrrrro�srogg�)rr)	r
�INFr3ZsubTestr"rrr9r�)rrorrr%rrr� test_constructor_special_numbers�s&

z,ComplexTest.test_constructor_special_numbersc	s�xRtD]J�t�fdd�dD��s|�t��t���|�t��t��dd���qWx:tD]2��dkrhqZt�fdd�dD��sZ|�tt��qZWdS)Nc3s|]}|�kVqdS)Nr)r)�ch)�litrr�	<genexpr>�sz/ComplexTest.test_underscores.<locals>.<genexpr>ZxXoObB�_rs)Z0_7Z09_99c3s|]}|�kVqdS)Nr)r)r�)r�rrr��s)	r�anyr_r
�eval�replacerr1r^)rr)r�r�test_underscores�s
 
zComplexTest.test_underscorescCsTxNtdd�D]@}|�t|�tt|d���|d}|�t|�tt|d���qWdS)Ni���rg@g)r0r_�hashr
)rrrrr�	test_hash�szComplexTest.test_hashcCsJdd�tdd�D�}x0|D](}|�|jd|jddt|��qWdS)NcSs.g|]&}tdd�D]}t|d|d��qqS)i�����	g@g@)r0r
)r)rrrrrr+�sz(ComplexTest.test_abs.<locals>.<listcomp>i����r�rPg�?)r0rrrr)rZnumsZnumrrr�test_abs�s
zComplexTest.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|�|�dS)N)�repr�str)�v�expected�test_fnrrr�test�sz'ComplexTest.test_repr_str.<locals>.testy�?@z(1+6j)y�?�z(1-6j)y��z(-1+-0j))r�g�?z(1+infj)z(1-infj)r8z(inf+1j)z(-inf+infj)z(nan+1j)z(1+nanj)z
(nan+nanj)r�infjz-infj�nanjy��y@)r_ZassertNotEqualr
r�r3r�)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|�|�dS)N)r�r�)r�r�r�rrrr��sz5ComplexTest.test_negative_zero_repr_str.<locals>.testgg�?rmg�z(-0+1j)g�z-1jz(-0-1j)Z0jz-0jz(-0+0j)z(-0-0j))r_r
)rr�rrr�test_negative_zero_repr_str�sz'ComplexTest.test_negative_zero_repr_strcCs|�dd�dS)Ny��)r_)rrrr�test_neg�szComplexTest.test_negc	Cs�d}d}d}zJttjd�}t|||d�|��ttjd�}|�|��d||f�Wd|dk	rn|jsn|��t�tj�XdS)Ny�p=
ף
@���Q�@yffffff@ffffff@�w)�file�rz%s %s
)	�openrZTESTFN�print�closer_�read�closed�unlink)rrr�forrr�	test_file�szComplexTest.test_filecCsx|�d��d�|�d��d�|�d��d�|�d��d�|�td	t���d
tf�|�ttd	���td
f�dS)Ny�?@)g�?g@y�?�)g�?g�y@)gg@y��)gg�rg)r_�__getnewargs__r
r�)rrrr�test_getnewargs�szComplexTest.test_getnewargscCs@d\}}|�t|jd�tdd��|�t|jd�tdd��dS)N)yy��g�gg�)r_rr)r�z1�z2rrr�test_plus_minus_0j�szComplexTest.test_plus_minus_0jcCsfd}d}d}|�|jd�|�|jd�|�|jd�|�|jd�|�|jd�|�|jt�dS)Ny��y��y��g�g�)r"rrr�)rZz0r�r�rrr�test_negated_imaginary_literalsz*ComplexTest.test_negated_imaginary_literalcCsJ|�td�ttd��|�td�tdt��|�td�ttt��dS)NZ1e500gz-1e500jz-1e500+1.8e308j)r_r
r�)rrrr�
test_overflowszComplexTest.test_overflowc
	Csdddddddttg	}|dd�|D�7}xP|D]H}xB|D]:}t||�}tt|��}|�|j|j�|�|j|j�q8Wq.Wtd	�td
�}}td|�td|�}}	x`|D]X}xR|D]J}t||�}tt|��}|�d|jd|j�|�d|jd|j�q�Wq�WdS)Ngg�ig��N�~hg�(�
�0�?go���!	@g�d~�QJcSsg|]
}|�qSrr)r)r�rrrr+sz3ComplexTest.test_repr_roundtrip.<locals>.<listcomp>r	r
)	r�r3r
r�r"rrr(r�)
rZvalsrrr%Z	roundtripr	r
r�r�rrr�test_repr_roundtrips$





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�xduD]}|�tdrj|��qzW|�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�?@rsy�?@y@y������	@y@y������	@�-�<y�$I�$I�?%I�$I�,�Z10gg@rug�g@�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-20jrHz-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.00jy�?�?z.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+nanjr8z
1.000000+nanjz
nan+1.000000jr[z
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)	r_r r�r
r1r^�
__format__r3r�)rr%�trrr�test_format7s�


zComplexTest.test_formatN)r)r)"rgrhrirrr"r#r'r4r7rIrVrXrZr`rarcr�rZrequires_IEEE_754r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrs<

'1rcCst�t�dS)N)rZrun_unittestrrrrr�	test_main�sr��__main__)rr�rZtest.test_grammarrrrZmathrrrrAr(r�r3rrr�rgrrrr�<module>s '