| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/__pycache__/ |
Upload File : |
�
���g�7 � �, � 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 �#C:\Python312\\Lib\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"