o
    ‹¨ÊhW  ã                   @   sj   d Z zddlZW n ey   ddlZY nw ddlmZ g d¢ZG dd„ dejƒZe	dkr3e 
¡  dS dS )z(Tests for google.protobuf.text_encoding.é    N)Útext_encoding))úfoo\rbar\nbaz\tr   s   foobar
baz	)ú"\'full of \"sound\" and \"fury\"\'r   s   'full of "sound" and "fury"')úsigni\\fying\\ nothing\\r   s   signi\fying\ nothing\)z\010\t\n\013\014\rz	\t\n\rs   	
c                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚTextEncodingTestCasec                 C   s@   t D ]\}}}|  |tj|dd�¡ |  |tj|dd�¡ qd S )NF)Úas_utf8T)ÚTEST_VALUESÚassertEqualr   ÚCEscape©ÚselfÚescapedÚescaped_utf8Ú	unescaped© r   ú]/var/www/html/env/lib/python3.10/site-packages/google/protobuf/internal/text_encoding_test.pyÚtestCEscape:   s   ÿÿýz TextEncodingTestCase.testCEscapec                 C   s8   t D ]\}}}|  |t |¡¡ |  |t |¡¡ qd S )N)r   r	   r   Ú	CUnescaper   r   r   r   ÚtestCUnescapeA   s   þz"TextEncodingTestCase.testCUnescapeN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   9   s    r   Ú__main__)Ú__doc__Ú	unittest2ÚunittestÚImportErrorÚgoogle.protobufr   r   ÚTestCaser   r   Úmainr   r   r   r   Ú<module>   s    ÿÿ