a
    	3j                     @   sf   d dl mZ d dlmZmZ d dlmZ g dZG dd dZG dd deeZ	G d	d
 d
eeZ
dS )    )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")Z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                   @   s$   e Zd Zdd Zdd Zdd ZdS )TestEncodeBasestringAsciic                 C   sF   | j jjj}tD ]0\}}| j j|}| ||d|||| qd S )Nz{0!r} != {1!r} for {2}({3!r}))jsonencoderencode_basestring_ascii__name__CASESassertEqualformat)selfZfnameZinput_stringexpectresult r   g/www/server/python_manager/versions/3.9.10/lib/python3.9/test/test_json/test_encode_basestring_ascii.pytest_encode_basestring_ascii   s    z6TestEncodeBasestringAscii.test_encode_basestring_asciic                 C   s&   g d}|  t|}| |d d S )N)Zone   )Ztwo   )Zthree   )Zfour   )Zfive   z6{"one": 1, "two": 2, "three": 3, "four": 4, "five": 5})dumpsr   r   r   itemssr   r   r   test_ordered_dict   s    z+TestEncodeBasestringAscii.test_ordered_dictc                 C   s*   g d}| j t|dd}| |d d S )Nr   T)Z	sort_keysz6{"five": 5, "four": 4, "one": 1, "three": 3, "two": 2})r   dictr   r   r   r   r   test_sorted_dict#   s    z*TestEncodeBasestringAscii.test_sorted_dictN)r   
__module____qualname__r   r    r"   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )TestPyEncodeBasestringAsciiN)r   r#   r$   r   r   r   r   r%   )       r%   c                   @   s   e Zd Zedd ZdS )TestCEncodeBasestringAsciic                 C   sH   d}d| }|  t | jj| W d    n1 s:0    Y  d S )Ni* )ZassertRaisesOverflowErrorr	   r
   r   )r   sizer   r   r   r   test_overflow+   s    z(TestCEncodeBasestringAscii.test_overflowN)r   r#   r$   r   r+   r   r   r   r   r'   *   s   r'   N)collectionsr   Ztest.test_jsonr   r   Ztest.supportr   r   r   r%   r'   r   r   r   r   <module>   s   