Sindbad~EG File Manager
�
'Μg]6 � �, � d dl mZ d dlZd dlZd dlmZ ej Zd add�Z G d� dej � Z
G d� dej � Z G d � d
ej � Zd� Z
G d� d
ej � Zedk( r ej � yy)� )�supportN)�
cmp_to_keyc �, � t rt d| � |d d }|r|j t |� �� n|j � t |� t |� k7 rVt d| � t dt |� t |� � t |� t |� t |� t
dz
ay t
|� D ]T \ }}|| }||us�t d| � t d|||� t |� t |� t |� t
dz
a y y )Nz checking��keyzerror inzlength mismatch;� zout of order at index)�verbose�print�sortr �len�nerrors� enumerate)�tag�expected�raw�compare�orig�i�good�maybes �+/usr/local/lib/python3.12/test/test_sort.py�checkr
s� � � �
�n�c�"��q�6�D�����Z��(��)����
�
�8�}��C�� �
�j�#��
� �#�h�-��S��:�
�h��
�d��
�c�
��1�����X�&���4��A����u���*�c�"��)�1�d�E�:��(�O��$�K��#�J��q�L�G�� '� c � � e Zd Zd� Zy)�TestBasec �P �
� dg}t dd� D ]( }d|z }|j t |dz
|dz � � �* |j g d�� G �
fd�dt � �
G d� d t � }|D �] }t t |� � }t rt d
|� |d d }t
d||� |d d }|j � t
d||� |d d }t j |� t
d
||� |d d }|j � |d d }t
d||d� � t rt d� t d� |d d }|j t d� � �� t
d||� t |� dk\ r*d� }|d d }| j t |j |�� |D � cg c]
} �
| � �� }} |d d }t j |� d�
_ d}
|j � |
rd�
_ t
d||� t |� D � cg c] } |t j d� | � �� }} |D �cg c] }||j"