Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.143.205.184
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_xrange.pyc
�
@��cc@s�ddlZddlZddlZddlZddlZddlZejdded�d�Z	d�Z
dejfd��YZd	�Z
ed
kr�e
�ndS(i����Ntignoresinteger argument expectedtunittestccsO|||dkrK||||7}x"||krG|V||7}q)WndS(Ni((tstarttstoptstep((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pytpyrange
s
cCs+||||7}t|||||�S(N(R(RRR((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pytpyrange_reversedst
XrangeTestcBsAeZdd�Zd�Zd�Zd�Zd�Zd�ZRS(c
Cs|dk	r3tj||�}tj||�}nt�}tj||d|�}x�t|�D]�\}\}}	||	kr�qaqa||kr�|jdj|||	��qa|	|kr�|jdj|||��qa|jdj|||	|��qaWdS(Nt	fillvalues;{}: iterator ended unexpectedly at position {}; expected {}s/{}: unexpected excess element {} at position {}s4{}: wrong element at position {};expected {}, got {}(tNonet	itertoolstislicetobjecttizip_longestt	enumeratetfailtformat(
tselftxstysttest_idtlimittsentineltpairstitxty((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pytassert_iterators_equals 	cCsBt|�t|�krF|jdj||t|�t|���nt|�dkr�|d|dkr�|jdj|||d|d��n|d|dkr�|jdj|||d|d��q�nt|�dkr>|d|d}|d|d}||kr>|jdj||||��q>ndS(	Ns,{} and {} have different lengths: {} and {} iis5{} and {} have different initial elements: {} and {} i����s3{} and {} have different final elements: {} and {} is){} and {} have different step: {} and {} (tlenRR(RRRtx_stepty_step((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pytassert_xranges_equivalent1s "!cCs�|jttd��dddg�|jttdd��ddddg�|jttd��g�|jttd��g�|jttddd��ddd	g�|jttdd
d��ddddg�d}d
}d}|jtt||d��||dg�|jtt|d|d��|d|dg�|jtt|d|d��|d|dg�tt|||��}|j||�|j||�|jt|�d�tt|||��}|j||�|j||�|jt|�d�tt|||��}|j||�|j||�|jt|�d�|jtt�|jttdddd�|jttddd�|jt	tddd�|jttdd�|jttddd�|jttdt
jt
jd��d�|jt	tt
jt
j�|jt	tddt
j�tt
jt
jd�}|jt|�t
j�|jt	tt
jdt
jd�dS(Niiiiiii����i
ii����i����i����idi2l����i����ietspami*lDG��d�r���Y�|g�O�s&YR5Il(�h�V<m�zFX�X��`;�/_�}|7\-l(�h�V<m�zFX�X��`;�/_�}|7\-(tassertEqualtlisttxrangetassertIntassertNotInRtassertRaisest	TypeErrort
ValueErrort
OverflowErrortsystmaxint(Rtatbtctseqtr((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyttest_xrangeGsH%++.-44,cCs�ddddddg}xittjd�D]T}xK|D]C}t|�}|jttjtj||���t|��q9Wq,Wtt	j
t	j�}|d|df|ddfd||df|d|dfd|dfd|d|f||df||d
f||df||d
f||df||dfg}xcttjd�D]N}xE|D]=}t|�}tjtj||��}|j||�qhWq[WdS(Ni
iii��i
iii����ii����iiiiY)i���i���(i
(ii(i��i
(iii����(i
ii(i����ii(
trangetpickletHIGHEST_PROTOCOLR#R!R"tloadstdumpstminR*R+tmaxsizeR(Rt	testcasestprotottR0tMtlarge_testcasestr_out((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyt
test_picklingxs4
$






cCsttjtj�}ddddddd|df|ddfd||df|d|dfd|dfd|d|f||df||d
f||df||d
f||df||dfg}x<|D]4}t|�}tt|��}|j||�q�WdS(Ni
iii��i
iii����ii����iiiiY)i���i���(i
(ii(i��i
(iii����(i
ii(i����ii(R7R*R+R8R#tevaltreprR(RR<R9R;R0R>((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyt	test_repr�s.






c	Cs�gddfD]C}||dd|d|fD]}dD]}||^q:q0q
}g|D]A}|D]4}ddddddfD]}|||f^q�qgq]}x�|D]�\}}}yt|||�}	Wntk
r�nAXt|||�}
d
j|||�}|j|	|
|dd�ytt|||��}	Wntk
rSq�Xt|||�}
d
j|||�}|j|	|
|dd�q�WdS(Nii i@ii����i����ii?isxrange({}, {}, {})Ridsreversed(xrange({}, {}, {}))Il(i����i����iiill����I�i�(R#R)RRRtreversedR(RR<tbasetjiggletlimitsRtendRttest_rangestiter1titer2R((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyttest_range_iterators�s.# 

7

N(	t__name__t
__module__R	RRR1R?RBRK(((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyRs		1		 cCstjjt�dS(N(ttestttest_supporttrun_unittestR(((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyt	test_main�st__main__(ttest.test_supportRNRR*R3R
twarningstfilterwarningstDeprecationWarningRRtTestCaseRRQRL(((s7/usr/local/python-2.7/lib/python2.7/test/test_xrange.pyt<module>s
			�	
© 2025 GrazzMean