U
    4Je
                     @   sJ   d Z ddlZddlmZ ddddgZG dd	 d	ejZed
krFe  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 ]6\}}}| |tj|dd | |tj|dd qd S )NF)Zas_utf8T)TEST_VALUESassertEqualr   ZCEscapeselfescapedZescaped_utf8Z	unescaped r   O/tmp/pip-unpacked-wheel-0oacnh65/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   Z	CUnescaper	   r   r   r   testCUnescape<   s    z"TextEncodingTestCase.testCUnescapeN)__name__
__module____qualname__r   r   r   r   r   r   r   4   s   r   __main__)	__doc__ZunittestZgoogle.protobufr   r   ZTestCaser   r   mainr   r   r   r   <module>   s   