
    daf                     x    d dl mZ d dlmZmZ d dlmZ g dZ G d d      Z G d dee      Z	 G d	 d
ee      Z
y)    )OrderedDict)PyTestCTest)bigaddrspacetest))u9   /\"쫾몾ꮘﳞ볚
	`1~!@#$%^&*()_+-=[]{}|;:',./<>?zT"/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?"u   ģ䕧覫췯ꯍz&"\u0123\u4567\u89ab\ucdef\uabcd\uef4a")controlsz
"controls"z
	z"\b\f\n\r\t")z1{"object with 1 member":["array with 1 element"]}z7"{\"object with 1 member\":[\"array with 1 element\"]}")z s p a c e d z" s p a c e d ")u   𝄠z"\ud834\udd20")u   αΩz"\u03b1\u03a9")z`1~!@#$%^&*()_+-={':[,]}|;.</>?z!"`1~!@#$%^&*()_+-={':[,]}|;.</>?"r	   r   c                       e Zd Zd Zd Zd Zy)TestEncodeBasestringAsciic                     | j                   j                  j                  j                  }t        D ]I  \  }}| j                   j                  j                  |      }| j                  |||d|d| d|d       K y )Nz != z for ())jsonencoderencode_basestring_ascii__name__CASESassertEqual)selffnameinput_stringexpectresults        F/root/Python-3.12.4/Lib/test/test_json/test_encode_basestring_ascii.pytest_encode_basestring_asciiz6TestEncodeBasestringAscii.test_encode_basestring_ascii   s}    		!!99BB$) 	K L&YY&&>>|LFVV*D
%wa7GqIK	K    c                 d    g d}| j                  t        |            }| j                  |d       y )N)one   )two   )three   )four   )five   z6{"one": 1, "two": 2, "three": 3, "four": 4, "five": 5})dumpsr   r   r   itemsss      r   test_ordered_dictz+TestEncodeBasestringAscii.test_ordered_dict   s+    PJJ{5)*TUr   c                 h    g d}| j                  t        |      d      }| j                  |d       y )Nr   T)	sort_keysz6{"five": 5, "four": 4, "one": 1, "three": 3, "two": 2})r)   dictr   r*   s      r   test_sorted_dictz*TestEncodeBasestringAscii.test_sorted_dict"   s.    PJJtE{dJ3TUr   N)r   
__module____qualname__r   r-   r1    r   r   r   r      s    KVVr   r   c                       e Zd Zy)TestPyEncodeBasestringAsciiN)r   r2   r3   r4   r   r   r6   r6   (   s    r   r6   c                       e Zd Zed        Zy)TestCEncodeBasestringAsciic                     d}d|z  }| j                  t              5  | j                  j                  j	                  |       d d d        y # 1 sw Y   y xY w)Ni* )assertRaisesOverflowErrorr   r   r   )r   sizer,   s      r   test_overflowz(TestCEncodeBasestringAscii.test_overflow*   sK    4K}- 	9II55a8	9 	9 	9s   &AAN)r   r2   r3   r   r>   r4   r   r   r8   r8   )   s    9 9r   r8   N)collectionsr   test.test_jsonr   r   test.supportr   r   r   r6   r8   r4   r   r   <module>rB      s>    # ( )	V V( K";V J9!:E 9r   