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: 18.223.122.196
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_unicodedata.pyo
�
@��cc@s�dZddlZddlZddlZddlZddlZdZdejfd��YZ	dejfd��YZ
de
fd	��YZd
e
fd��YZd�Z
ed
kr�e
�ndS(s� Test script for the unicodedata module.

    Written by Marc-Andre Lemburg (mal@lemburg.com).

    (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

i����Nsutf-8tUnicodeMethodsTestcBseZdZd�ZRS(t(4504dffd035baea02c5b9de82bebc3d65e0e0bafcCs�tj�}x�td�D]�}t|�}d|j�d|j�d|j�d|j�d|j�d|j	�d|j
�d|j�d|j�d|dj�d|dj�d|dj�d|dj�d|dj�d|dj	�d|dj
�d|dj�d|dj�|j
�|j�|j�|dj
�|dj�|dj�|dj�g}|jdj|�jt��qW|j�}|j||j�dS(Niu01uabcu123u 	uABCu(thashlibtsha1trangetunichrtisalnumtisalphat	isdecimaltisdigittislowert	isnumerictisspacetistitletisuppertlowertupperttitletupdatetjointencodetencodingt	hexdigesttassertEqualtexpectedchecksum(tselfthtitchartdatatresult((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_method_checksums>








			


#(t__name__t
__module__RR(((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyRstUnicodeDatabaseTestcBseZd�Zd�ZRS(cCsddl}||_dS(Ni����(tunicodedatatdb(RR#((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pytsetUpFscCs
|`dS(N(R$(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttearDownLs(R R!R%R&(((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyR"Ds	tUnicodeFunctionsTestcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�ZRS(t(6ccf1b1a36460d2694f9b0b0f0324942fe70ede6cCsg}tj�}x�td�D]�}t|�}t|jj|d��t|jj|d��t|jj|d��|jj	|�|jj
|�|jj|�t|jj|��t|jj
|��g}|jdj|��qW|j�}|j||j�dS(Nii����t(RRRRtstrR$tdigittnumerictdecimaltcategoryt
bidirectionalt
decompositiontmirroredt	combiningRRRRR(RRRRRR((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_function_checksumTscCs�|j|jjdd�d�|j|jjd�d�|j|jjdd�d�|j|jjd�d�|j|jjdd�d�|jt|jj�|jt|jjd�|jt|jjd�dS(	NuAu9i	u⅛u⑨u𠀀uxxux(RR$R+tNonetassertRaisest	TypeErrort
ValueError(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt
test_digitiscCs�|j|jjdd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d	�|j|jjd
d�d�|jt|jj�|jt|jjd�|jt|jjd�dS(
NuAu9i	u⅛g�?u⑨g"@u꘧g@u𠀀uxxux(RR$R,R4R5R6R7(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_numerictscCs�|j|jjdd�d�|j|jjd�d�|j|jjdd�d�|j|jjdd�d�|j|jjdd�d�|jt|jj�|jt|jjd�|jt|jjd�dS(	NuAu9i	u⅛u⑨u𠀀uxxux(RR$R-R4R5R6R7(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_decimal�scCs�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd	�dS(
Nu￾tCnuatLluAtLuu𠀀tLouxx(RR$R.R5R6(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt
test_category�scCs�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS(	Nu￾R)u tWSuAtLu𠀀uxx(RR$R/R5R6(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_bidirectional�scCsk|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS(Nu￾R)u¼s<fraction> 0031 2044 0034uxx(RR$R0R5R6(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_decomposition�scCs�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS(Nu￾iuau∁iu𠀀uxx(RR$R1R5R6(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt
test_mirrored�scCs�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS(Nu￾iuau⃡i�u𠀀uxx(RR$R2R5R6(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_combining�scCsU|jt|jj�|jt|jjdd�|j|jjdd�d�dS(NtunknownuxxtNFKCu(R5R6R$t	normalizeR7R(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_normalize�scCsMdddd	ddf}x-|D]%}|j|jjd|�|�q WdS(
Nuେ̀ାuᄀ̀ᅡuLi̍t-sṳ́uमार्क ज़uुकेरबर्गuकिर्गिज़su\u0938\u094d\u0924\u093e\u0928tNFCu.मार्क ज़ुकेरबर्ग(RR$RH(Rtcomposedttext((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt	test_pr29�s

cCs?ddd}ddd}|j|jjd|�|�dS(NuC̸iuÇuÇRJ(RR$RH(Rtatb((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_issue10254�scCs�d}d}d}d}d}d}|j|jjd|�|�|j|jjd|�|�|j|jjd|�|�dS(Nu	ᄀᅶᆨu	기ᆧu기ᆧu	기ᇃu기ᇃRJ(RR$RH(Rtu1176_str_atu1176_str_btu11a7_str_atu11a7_str_btu11c3_str_atu11c3_str_b((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_issue29456�scCs�|jj}|jt|d�|jt|d�|jt|d�|j|d�d�|j|d�d�|j|d�d	�|j|d
�d�|j|d�d
�|j|d�d�|j|d�d	�dS(NRNuurautNu tNau좔tWuヲtHu?tFu‐tAu𠀀(R$teast_asian_widthR5R6R(Rteaw((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_east_asian_width�s(R R!RR3R8R9R:R?RBRCRDRERIRMRPRWR`(((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyR'Os																	
tUnicodeMiscTestcBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCspd}tjd|g}tj|dtj�}|j�|j|jd�d}|j||j	j
��dS(NsGimport sys;sys.modules['unicodedata'] = None;eval("u'\N{SOFT HYPHEN}'")s-ctstderrisUSyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)(tsyst
executablet
subprocesstPopentPIPEtwaitRt
returncodetassertInRbtread(Rtcodetargstpopenterror((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt#test_failed_import_during_compiling�s
cCs�d}xjtd�D]\}t|�}|jj|d�}|dkr|j||jj|��|d7}qqW|j|dk�dS(Niii����ii
(txrangeRR$R-RR,t
assertTrue(RtcountRtctdec((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_decimal_numeric_consistent�scCs�d}xjtd�D]\}t|�}|jj|d�}|dkr|j||jj|��|d7}qqW|j|dk�dS(Niii����ii
(RqRR$R+RR,Rr(RRsRRtRu((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_digit_numeric_consistentscCs |j|jjd�d�dS(NsGOTHIC LETTER FAIHUu𐍆(RR$tlookup(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_bug_1704793scCs�ddl}|j|jd��|j|jjd��|jdj�dk�|jdj�dk�|jdj�dk�dS(Ni����u༺uauAuᵹuꝽu.(R#RrR1t	ucd_3_2_0R(RR#((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_ucd_510scCs�|jdj�d�|jgttjd�D]D}dt|�j�t|�j�t|�j�kr0|^q0dg�dS(Nuᵹiui(RRRRct
maxunicodeRRR(RRt((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt
test_bug_5828&s
AcCsF|jdj�d�|jdj�d�|jdj�d�dS(NuDŽuDžudž(RR(R((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt
test_bug_49711scCszxstd�D]e}t|�dj�}|dkrU|jt|�d
d|�q
|jt|�dd|�q
WdS(NiuAi
iii
i�iiii( i) is\u%.4x should be a linebreakis \u%.4x should not be a linebreak(
i
iii
i�iiii( i) (RRt
splitlinesRtlen(RRtlines((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyttest_linebreak_76437s	(
R R!RpRvRwRyR{R}R~R�(((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyRa�s		
	
				cCstjjttt�dS(N(ttestttest_supporttrun_unittestRaRR'(((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt	test_mainBs	t__main__(t__doc__RctunittestRRettest.test_supportR�RtTestCaseRR"R'RaR�R (((s</usr/local/python-2.7/lib/python2.7/test/test_unicodedata.pyt<module>s0�Y	
© 2025 GrazzMean