Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_json/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_json/__pycache__/test_unicode.cpython-312.opt-2.pyc

�

)Μg���l�ddlZddlmZddlmZmZGd�d�ZGd�dee�ZGd�d	ee�Zy)
�N)�OrderedDict)�PyTest�CTestc�T�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zy
)�TestUnicodec�N�d}|j|�}|j|d�y)N�αΩz"\u03b1\u03a9"��dumps�assertEqual��self�u�js   �8/usr/local/lib/python3.12/test/test_json/test_unicode.py�test_encoding3zTestUnicode.test_encoding3
s%��H���J�J�q�M������.�/�c�P�d}|j|g�}|j|d�y)Nr	z["\u03b1\u03a9"]r
r
s   r�test_encoding4zTestUnicode.test_encoding4s'��H���J�J��s�O������0�1rc�Z�d}|j|d��}|j|d|�d��y)Nr	F��ensure_ascii�"r
r
s   r�test_encoding5zTestUnicode.test_encoding5s1��H���J�J�q�u�J�-������a��s�!�H�%rc�\�d}|j|gd��}|j|d|�d��y)Nr	Frz["z"]r
r
s   r�test_encoding6zTestUnicode.test_encoding6s3��H���J�J��s��J�/������b���2�J�'rc�`�d}|j|dzd��}|j|d|�d��y)Nr	�
Frrz\n"r
r
s   r�test_encoding7zTestUnicode.test_encoding7s5��H���J�J�q�4�x�e�J�4������a��s�$�K�(rc��d}|j|j|�d�|j|j|d��d�y)Nu𝄠z"\ud834\udd20"Fru"𝄠")rr�rrs  r�test_big_unicode_encodez#TestUnicode.test_big_unicode_encode#s=����������A��(:�;�������A�E��:�N�Krc��d}|j|jd|�d��|�|j|jd�|�y)Nuz𝄠xrz"z\ud834\udd20x")r�loadsr!s  r�test_big_unicode_decodez#TestUnicode.test_big_unicode_decode(sB����������a��s�!�H�-�q�1�������$8�9�1�=rc��tdd�D]5}t|�}d|d�d�}|j|j|�|��7y)Nri��z"\u�04xr)�range�chrrr$)r�ir�ss    r�test_unicode_decodezTestUnicode.test_unicode_decode-sC���q�&�!�A��A��A��q��g�Q��A����T�Z�Z��]�A�.�"rc��|jt|jd��t�|jt|jd��t�|jt|jd�d�t�y)Nz""z"a"z["a"]r)r�typer$�str�rs r�test_unicode_preservationz%TestUnicode.test_unicode_preservation3sa������d�j�j��.�/��5�����d�j�j��/�0�#�6�����d�j�j��1�!�4�5�s�;rc��|jt|jd�|jt|jdg�y)Nshi)�assertRaises�	TypeErrorrr0s r�test_bytes_encodezTestUnicode.test_bytes_encode8s0�����)�T�Z�Z��7����)�T�Z�Z�%��9rc��dtjfdtjfdtjfdtjfdtj
ffD]m\}}dg}|j
|�j|�}|j|j||z�|�|j|j|�|��o|jt|jd�|j|jdjd	��d
�|j|jd�d�|j|jd
�d�|j|jd�d�y)Nzutf-8zutf-16bezutf-16lezutf-32bezutf-32leu
aµ€𝄠s["�"]u"☀"z	utf-16-leu☀s5�s7�s57�9)�codecs�BOM_UTF8�BOM_UTF16_BE�BOM_UTF16_LE�BOM_UTF32_BE�BOM_UTF32_LEr�encoderr$r3�UnicodeDecodeError)r�encoding�bom�data�encodeds     r�test_bytes_decodezTestUnicode.test_bytes_decode<s>���&�/�/�*��V�0�0�1��V�0�0�1��V�0�0�1��V�0�0�1��M�H�c�,�,�D��j�j��&�-�-�h�7�G����T�Z�Z��g�
�6��=����T�Z�Z��0�$�7��	
���,�d�j�j�+�F�
	
������J�$5�$5�k�$B�C�!�	#�	
������H�-�q�1�������H�-�q�1�������E�*�B�/rc��d}gd�}|j|j|�t|��|j|j|d���|�|j|t��}|j|t|��|jt	|�t�|j|j|td���t|��y)Nz?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}))�xkd�)�kcw�)�art�)�hxm�)�qrtr7)�pad�)�hoyr8c��|S�N���xs r�<lambda>zATestUnicode.test_object_pairs_hook_with_unicode.<locals>.<lambda>\s��Qr)�object_pairs_hookc��yrUrVrWs rrYzATestUnicode.test_object_pairs_hook_with_unicode.<locals>.<lambda>bs��Dr)rZ�object_hook)rr$�evalrr.)rr+�p�ods    r�#test_object_pairs_hook_with_unicodez/TestUnicode.test_object_pairs_hook_with_unicodeWs���M��
1��������A���Q��0�������A�;��G��K�
�Z�Z��{�Z�
;������[��^�,�����b��;�/�������A�;�2@�$�B�$�Q��	)rN)�__name__�
__module__�__qualname__rrrrrr"r%r,r1r5rFr`rVrrrrs?��0�
2�
&�
(�
)�
L�
>�
/�<�
:�0�6)rrc��eZdZy)�
TestPyUnicodeN�rarbrcrVrrreref��rrec��eZdZy)�TestCUnicodeNrfrVrrririgrgrri)	r:�collectionsr�test.test_jsonrrrrerirVrr�<module>rls1��
�#�(�])�])�@/�K��.�,�;��,r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists