+
    Bi                     n    ^ RI t ^ RIHt ^ RIHtHt  ! R R4      t ! R R]]4      t ! R R	]]4      tR# )
    N)OrderedDict)PyTestCTestc                   h   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tR tRtV tR# )TestUnicodec                P    R pV P                  V4      pV P                  VR4       R# )   αΩz"\u03b1\u03a9"NdumpsassertEqualselfujs   &  2/usr/lib/python3.14/test/test_json/test_unicode.pytest_encoding3TestUnicode.test_encoding3
   s%    HJJqM./    c                R    R pV P                  V.4      pV P                  VR4       R# )r	   z["\u03b1\u03a9"]Nr
   r   s   &  r   test_encoding4TestUnicode.test_encoding4   s'    HJJsO01r   c                \    R pV P                  VRR7      pV P                  VRV R24       R# )r	   Fensure_ascii"Nr
   r   s   &  r   test_encoding5TestUnicode.test_encoding5   s1    HJJquJ-as!H%r   c                ^    R pV P                  V.RR7      pV P                  VRV R24       R# )r	   Fr   z["z"]Nr
   r   s   &  r   test_encoding6TestUnicode.test_encoding6   s3    HJJsJ/b2J'r   c                j    R pV P                  VR,           RR7      pV P                  VRV R24       R# )r	   
Fr   r   z\n"Nr
   r   s   &  r   test_encoding7TestUnicode.test_encoding7   s5    HJJq4xeJ4as$K(r   c                    R pV P                  V P                  V4      R4       V P                  V P                  VRR7      R4       R# )u   𝄠z"\ud834\udd20"Fr   u   "𝄠"N)r   r   r   r   s   & r   test_big_unicode_encode#TestUnicode.test_big_unicode_encode#   s=    A(:;AE:NKr   c                    R pV P                  V P                  RV R24      V4       V P                  V P                  R4      V4       R# )u   z𝄠xr   z"z\ud834\udd20x"N)r   loadsr&   s   & r   test_big_unicode_decode#TestUnicode.test_big_unicode_decode(   sB    as!H-q1$891=r   c                    \        ^ R4       F6  p\        V4      pRVR R2pV P                  V P                  V4      V4       K8  	  R# )r   i  z"\u04xr   N)rangechrr   r*   )r   ir   ss   &   r   test_unicode_decodeTestUnicode.test_unicode_decode-   sC    q&!AAAqgQATZZ]A. "r   c                (   V P                  \        V P                  R 4      4      \        4       V P                  \        V P                  R4      4      \        4       V P                  \        V P                  R4      ^ ,          4      \        4       R# )z""z"a"z["a"]N)r   typer*   strr   s   &r   test_unicode_preservation%TestUnicode.test_unicode_preservation3   sa    djj./5djj/0#6djj1!45s;r   c                    V P                  \        V P                  R 4       V P                  \        V P                  R .4       R# )s   hiN)assertRaises	TypeErrorr   r8   s   &r   test_bytes_encodeTestUnicode.test_bytes_encode8   s0    )TZZ7)TZZ%9r   c                   R \         P                  3R\         P                  3R\         P                  3R\         P                  3R\         P
                  33 Fp  w  rR.pV P                  V4      P                  V4      pV P                  V P                  W$,           4      V4       V P                  V P                  V4      V4       Kr  	  V P                  \        V P                  R4       V P                  V P                  RP                  R4      4      R	4       V P                  V P                  R
4      ^4       V P                  V P                  R4      ^4       V P                  V P                  R4      ^94       R# )zutf-8zutf-16bezutf-16lezutf-32bezutf-32leu
   aµ€𝄠s   [""]u   "☀"z	utf-16-leu   ☀s   5 s    7s   57N)codecsBOM_UTF8BOM_UTF16_BEBOM_UTF16_LEBOM_UTF32_BEBOM_UTF32_LEr   encoder   r*   r<   UnicodeDecodeError)r   encodingbomdataencodeds   &    r   test_bytes_decodeTestUnicode.test_bytes_decode<   s:   &//*V001V001V001V001MH ,,Djj&--h7GTZZ6=TZZ0$7 	,djj+F
 	J$5$5k$BC!	# 	H-q1H-q1E*B/r   c                   R p. ROpV P                  V P                  V4      \        V4      4       V P                  V P                  VR R7      V4       V P                  V\        R7      pV P                  V\        V4      4       V P                  \	        V4      \        4       V P                  V P                  V\        R R7      \        V4      4       R# )z?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}c                     V # N xs   &r   <lambda>ATestUnicode.test_object_pairs_hook_with_unicode.<locals>.<lambda>\   s    Qr   )object_pairs_hookc                     R # rQ   rR   rS   s   &r   rU   rV   b   s    Dr   )rW   object_hookN))xkd   )kcw   )art   )hxm   )qrt   )pad   )hoy   )r   r*   evalr   r6   )r   r2   pods   &   r   #test_object_pairs_hook_with_unicode/TestUnicode.test_object_pairs_hook_with_unicodeW   s    M1AQ0A;GKZZ{Z;[^,b;/A;2@ $ B$Q	)r   rR   N)__name__
__module____qualname____firstlineno__r   r   r   r   r#   r'   r+   r3   r9   r>   rM   rk   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sG     0
2
&
(
)
L
>
/<
:06) )r   r   c                       ] tR t^ftRtR# )TestPyUnicoderR   Nrm   rn   ro   rp   rq   rR   r   r   ru   ru   f   s    $r   ru   c                       ] tR t^gtRtR# )TestCUnicoderR   Nrv   rR   r   r   rx   rx   g   s    r   rx   )	rA   collectionsr   test.test_jsonr   r   r   ru   rx   rR   r   r   <module>r{      s1     # (]) ])@ /K . ,; ,r   