o
    ˷e
                     @   sJ   d Z ddlZddlmZ g dZG dd dejZedkr#e  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   b/var/www/ideatree/venv/lib/python3.10/site-packages/google/protobuf/internal/text_encoding_test.pytestCEscape5   s   z TextEncodingTestCase.testCEscapec                 C   s8   t D ]\}}}| |t| | |t| qd S )N)r   r	   r   	CUnescaper   r   r   r   testCUnescape<   s   z"TextEncodingTestCase.testCUnescapeN)__name__
__module____qualname__r   r   r   r   r   r   r   4   s    r   __main__)	__doc__unittestgoogle.protobufr   r   TestCaser   r   mainr   r   r   r   <module>   s   