Sindbad~EG File Manager
a
��g& � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlmZm
Z
ddlmZ dd� Ze�e� dd� ZG d d
� d
e�ZG dd� de
je
je
je j�ZG d
d� de j�ZG dd� de j�Zedkr�e �� dS )z� Test script for the Unicode implementation.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
� N)�support�string_tests)�assert_python_failurec C sX ddd�}d
dd�}ddd�}ddd �}| d
kr<||d d fS | dkrP||d d fS d S d S )N�strictc S s dS �N�* � ��input�errorsr r �-/usr/local/lib/python3.9/test/test_unicode.py�decode1 s z search_function.<locals>.decode1c S s dS r r r r r r �encode1 s z search_function.<locals>.encode1c S s dS �N)r r r r r r r �encode2 s z search_function.<locals>.encode2c S s dS r r r r r r �decode2 s z search_function.<locals>.decode2�
test.unicode1�
test.unicode2)r )r )r )r r )�encodingr
r r r r r r �search_function s
r c C s | � � �� S )z�
Try to get a fresh clone of the specified text:
new object with a reference count of 1.
This is a best-effort: latin1 single letters and the empty
string ('') are singletons and cannot be cloned.
)�encode�decode)�textr r r �duplicate_string'