
    -Ph                     N    d dl Z d dlZd dlmc mZ  G d dej                  ZdS )    Nc                       e Zd ZdZd Zd ZdS )StringEncodingTestz)
    Test the StringEncoding module.
    c                    |                      t          j        d                     |                      t          j        d                     |                      t          j        d                     |                     t          j        d                     dd d d         }|                     t          j        |                     |                     t          j        d                     |                     t          j        d                     |                     t          j        d                     |                     t          j        d	                     d S )
Nabc   ꯍ   ☃               x)assertFalseStringEncodingstring_contains_lone_surrogates
assertTrue)selfobfuscated_surrogate_pairs     h/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/Cython/Compiler/Tests/TestStringEncoding.py$test_string_contains_lone_surrogatesz7StringEncodingTest.test_string_contains_lone_surrogates   s%   GNNOOOGQQRRRGVVWWWF~VVWWW%8$$B$$?!FG`aabbbFxPPQQQFxPPQQQF~VVWWWFWWXXXXX    c                 v   |                      t          j        d                     |                      t          j        d                     |                      t          j        d                     |                     t          j        d                     |                     t          j        d                     |                     t          j        d                     |                     t          j        d                     |                     t          j        d                     d S )	Nr   r   r   r   r   r	   r
   r   )r   r   string_contains_surrogatesr   )r   s    r   test_string_contains_surrogatesz2StringEncodingTest.test_string_contains_surrogates   s    B5IIJJJB8LLMMMB=QQRRRA(KKLLLA(KKLLLA.QQRRRA.QQRRRA/RRSSSSSr   N)__name__
__module____qualname____doc__r   r    r   r   r   r      sD         Y Y Y	T 	T 	T 	T 	Tr   r   )sysunittestCython.Compiler.StringEncodingCompilerr   TestCaser   r   r   r   <module>r%      ss    



  7 7 7 7 7 7 7 7 7T T T T T* T T T T Tr   