HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/__pycache__/test_sort.cpython-311.opt-2.pyc
�

��Vc�7���ddlmZddlZddlZddlmZejZdadd�ZGd�dej	��Z
Gd�dej	��ZGd	�d
ej	��Zd�Z
Gd�d
ej	��Zedkrej��dSdS)�)�supportN��
cmp_to_keyc���trtd|��|dd�}|r$|�t|�����n|���t	|��t	|��krttd|��tdt	|��t	|����t|��t|��t|��t
dz
adSt
|��D]m\}}||}||ur\td|��td|||��t|��t|��t|��t
dz
adS�ndS)Nz    checking��keyzerror inzlength mismatch;�zout of order at index)�verbose�print�sortr�len�nerrors�	enumerate)�tag�expected�raw�compare�orig�i�good�maybes        �"D:\Python311\Lib\test\test_sort.py�checkr
sj���#�
�n�c�"�"�"��q�q�q�6�D������Z��(�(��)�)�)�)����
�
�
�
�8�}�}��C��� ��
�j�#����
� �#�h�-�-��S���:�:�:�
�h����
�d����
�c�
�
�
��1������X�&�&�	�	���4��A����u��	��*�c�"�"�"��)�1�d�E�:�:�:��(�O�O�O��$�K�K�K��#�J�J�J��q�L�G��F�F�	�	�	�c��eZdZd�ZdS)�TestBasec���
��dg}tdd��D]0}d|z}|�t|dz
|dz�����1|�gd���G�
fd�dt���
Gd�d	t���|D�]_}tt|����}trtd
|��|dd�}t
d||��|dd�}|���t
d||��|dd�}tj	|��t
d
||��|dd�}|���|dd�}t
d||d���trtd��td��|dd�}|�
td������t
d||��t|��dkr/d�}|dd�}|�
t|j
|����
fd�|D��}|dd�}tj	|��d�
_d}	|�
��n#t$rd}YnwxYw|rd�
_t
d||���fd�t|��D��}d�|D��}	|	�
��d�|	D��}t
d||����adS)Nrr	�
�)r�di�c�*��eZdZdZd�Z�fd�Zd�ZdS)�+TestBase.testStressfully.<locals>.ComplainsTc��||_dS�N�r)�selfrs  r�__init__z4TestBase.testStressfully.<locals>.Complains.__init__6s
������rc����jr6tj��dkrtrtd||��t�|j|jkS)Ng����MbP?z        complaining at)�maybe_complain�randomr
r�RuntimeErrorr)r&�other�	Complainss  �r�__lt__z2TestBase.testStressfully.<locals>.Complains.__lt__9sQ����+�'��
���%�0G�'��E��6��e�D�D�D�&�&��v���'�'rc��d|jzS)Nz
Complains(%d)r%�r&s r�__repr__z4TestBase.testStressfully.<locals>.Complains.__repr__@s��&���/�/rN)�__name__�
__module__�__qualname__r)r'r.r1)r-s�rr-r"3sQ�������!�N�
�
�
�
(�
(�
(�
(�
(�
0�
0�
0�
0�
0rr-c� �eZdZd�Zd�Zd�ZdS)�(TestBase.testStressfully.<locals>.Stablec�"�||_||_dSr$�r�index)r&rrs   rr'z1TestBase.testStressfully.<locals>.Stable.__init__Ds�������
�
�
rc�"�|j|jkSr$r�r&r,s  rr.z/TestBase.testStressfully.<locals>.Stable.__lt__Hs���x�%�)�+�+rc�$�d|j|jfzS)NzStable(%d, %d)r8r0s rr1z1TestBase.testStressfully.<locals>.Stable.__repr__Ks��'�4�8�T�Z�*@�@�@rN)r2r3r4r'r.r1�rr�Stabler6CsF������
�
�
�
,�
,�
,�
A�
A�
A�
A�
Arr>zTesting size�identity�reversedzrandom permutationzreversed via functionc��||k||kz
Sr$r=��a�bs  r�<lambda>z*TestBase.testStressfully.<locals>.<lambda>as��q��s�Q�q�S�k�rz3    Checking against an insane comparison function.z?        If the implementation isn't careful, this may segfault.c�N�ttj��dz��dz
S)N�r	)�intr*rBs  rrEz*TestBase.testStressfully.<locals>.<lambda>gs���F�M�O�O�a�4G�0H�0H�1�0L�rrz(an insane function left some permutationc��t�r$�r+��xs r�bad_keyz)TestBase.testStressfully.<locals>.bad_keyks��&�&rc�&��g|]
}�|����Sr=r=)�.0rr-s  �r�
<listcomp>z,TestBase.testStressfully.<locals>.<listcomp>ps!���)�)�)�!���1���)�)�)rTFz+exception during sort left some permutationc�L��g|] }�tjd��|����!S)r�r*�	randrange)rOrr>s  �rrPz,TestBase.testStressfully.<locals>.<listcomp>}s0���C�C�C�Q����(��,�,�a�0�0�C�C�Crc� �g|]}||jf��Sr=)r9)rO�es  rrPz,TestBase.testStressfully.<locals>.<listcomp>~s��1�1�1�!�!�Q�W��1�1�1rc��g|]\}}|��Sr=r=)rOrUrs   rrPz,TestBase.testStressfully.<locals>.<listcomp>�s��)�)�)�t�q�!��)�)�)r�	stability)�range�extend�object�listr
rr�reverser*�shufflerrr
�assertRaisesr+r))r&�sizes�power�nrL�s�yrM�
it_complained�	augmentedr-r>s          @@r�testStressfullyzTestBase.testStressfully+s���������1�b�\�\�	*�	*�E��U�
�A��L�L��q��s�A�a�C���)�)�)�)�
���_�_�_�%�%�%�	0�	0�	0�	0�	0�	0�	0��	0�	0�	0� 		A�		A�		A�		A�		A�V�		A�		A�		A��3	%�3	%�A��U�1�X�X���A��
)��n�a�(�(�(��!�!�!��A��*�a��#�#�#��!�!�!��A�
�I�I�K�K�K��*�a��#�#�#��!�!�!��A��N�1�����&��1�-�-�-��!�!�!��A�
�I�I�K�K�K��!�!�!��A��)�1�a�1I�1I�J�J�J��
Y��K�L�L�L��W�X�X�X��!�!�!��A�
�F�F�z�"L�"L�M�M�F�N�N�N��<�a��C�C�C��1�v�v��{�
E�'�'�'��a�a�a�D���!�!�,���G�!�D�D�D�)�)�)�)�q�)�)�)�A��!�!�!��A��N�1����'+�I�$�!�M�
%����������
%�
%�
%� $�
�
�
�
%�����
K�+0�	�(��C�Q��J�J�J�C�C�C�C�%��(�(�C�C�C�A�1�1�q�1�1�1�I��N�N����)�)�y�)�)�)�A��+�q�!�$�$�$�$�g3	%�3	%s�I#�#I2�1I2N)r2r3r4rfr=rrrr*s(������V%�V%�V%�V%�V%rrc��eZdZd�Zd�ZdS)�TestBugsc����G�fd�d����fd�td��D���|�t�j��dS)Nc���eZdZ�fd�ZdS)�"TestBugs.test_bug453523.<locals>.Cc����r,tj��dkr����n��d��tj��dkS)Ng�?rGg�?)r*�pop�append)r&r,�Ls  �rr.z)TestBugs.test_bug453523.<locals>.C.__lt__�sL���� �����4�/� ��E�E�G�G�G�G��H�H�Q�K�K�K��}����,�,rN�r2r3r4r.)ros�r�Crk�s.�������
-�
-�
-�
-�
-�
-�
-rrqc�$��g|]}�����
Sr=r=)rOrrqs  �rrPz+TestBugs.test_bug453523.<locals>.<listcomp>�s���$�$�$�Q�Q�Q�S�S�$�$�$r�2)rXr^�
ValueErrorr)r&rqros @@r�test_bug453523zTestBugs.test_bug453523�su����
	-�	-�	-�	-�	-�	-�	-�	-�	-�	-�
%�$�$�$�%��)�)�$�$�$�����*�a�f�-�-�-�-�-rc���g}td��D]q}�fd�}ddg�|�t�jt	|������fd�}|�t�jt	|�����|g}�rdS)N�c�p����d������||k||kz
S�NrG)rnrm�rLrcros  �r�mutating_cmpz7TestBugs.test_undetected_mutation.<locals>.mutating_cmp�s2�����������������A��!�a�%�(�(rr	rrc�R����d���dd�=||k||kz
Sry)rnrzs  �rr{z7TestBugs.test_undetected_mutation.<locals>.mutating_cmp�s0�����������a�a�a�D��A��!�a�%�(�(r)rXr^rtrr)r&�memorywasterrr{ros    @r�test_undetected_mutationz!TestBugs.test_undetected_mutation�s�������r���	*�	*�A�
)�
)�
)�
)�
)��1��A����j�!�&�j��6N�6N��O�O�O�
)�
)�
)�
)�
)�
���j�!�&�j��6N�6N��O�O�O�(�>�L�L�	*�	*rN)r2r3r4rur~r=rrrhrh�s2������.�.�.� *�*�*�*�*rrhc�D�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
S)�TestDecorateSortUndecoratec��d���}|dd�}tj|��|�tj���d�}|�t
|�����dS)N�,The quick Brown fox Jumped over The lazy Dogrc�l�|���|���}}||k||kz
Sr$)�lower)rLrc�xlower�ylowers    r�my_cmpz9TestDecorateSortUndecorate.test_decorated.<locals>.my_cmp�s.���W�W�Y�Y����	�	�F�F��V�O����8�8r)�splitr*r]r�strr�r)r&�data�copyr�s    r�test_decoratedz)TestDecorateSortUndecorate.test_decorated�sy��=�C�C�E�E���A�A�A�w����t�����	�	�c�i�	� � � �	9�	9�	9�	
�	�	�j��(�(�	�)�)�)�)�)rc�t�d���}|�t|jd����dS)Nr�c��dS�Nrr=�rLrcs  rrEz>TestDecorateSortUndecorate.test_baddecorator.<locals>.<lambda>�s���rr)r�r^�	TypeErrorr�r&r�s  r�test_baddecoratorz,TestDecorateSortUndecorate.test_baddecorator�s8��=�C�C�E�E�����)�T�Y�M�M��B�B�B�B�Brc���d�td��D��}|dd�}|�d����|���|�||��dS)Nc�:�g|]}tjd��|f��S�r rR�rOrs  rrPz=TestDecorateSortUndecorate.test_stability.<locals>.<listcomp>��(��?�?�?�q��!�#�&�&��*�?�?�?r��c��|dSr�r=)�ts rrEz;TestDecorateSortUndecorate.test_stability.<locals>.<lambda>�s
���!��rr)rXr�assertEqual)r&r�r�s   r�test_stabilityz)TestDecorateSortUndecorate.test_stability�sg��?�?�E�#�J�J�?�?�?���A�A�A�w���	�	�n�n�	�%�%�%��	�	��������t�$�$�$�$�$rc���ttdd����}|dd�}|�t|jd����|�||��dS)N���rc��d|zS�Nr	r=rKs rrEzDTestDecorateSortUndecorate.test_key_with_exception.<locals>.<lambda>�s
��a��c�rr)r[rXr^�ZeroDivisionErrorrr�)r&r��dups   r�test_key_with_exceptionz2TestDecorateSortUndecorate.test_key_with_exception�s`���E�"�a�L�L�!�!���1�1�1�g�����+�T�Y�M�M��J�J�J�����s�#�#�#�#�#rc���ttd������fd�}|�t�j|���dS)Nrc�:���dd�=td���dd�<|S�Nrw�rX)rLr�s �r�kz<TestDecorateSortUndecorate.test_key_with_mutation.<locals>.k�s&����Q�Q�Q���B�i�i�D����G��Hrr)r[rXr^rtr)r&r�r�s  @r�test_key_with_mutationz1TestDecorateSortUndecorate.test_key_with_mutation�sR����E�"�I�I����	�	�	�	�	�	
���*�d�i�Q��7�7�7�7�7rc���ttd�����G�fd�dt��}|�t�j|���dS)Nrc�&��eZdZd�Z�fd�Zd�ZdS)�ITestDecorateSortUndecorate.test_key_with_mutating_del.<locals>.SortKillerc��dSr$r=�r&rLs  rr'zRTestDecorateSortUndecorate.test_key_with_mutating_del.<locals>.SortKiller.__init__�s���rc�:���dd�=td���dd�<dSr�r�r�s �r�__del__zQTestDecorateSortUndecorate.test_key_with_mutating_del.<locals>.SortKiller.__del__�s%�������G���)�)��Q�Q�Q���rc�B�t|��t|��kSr$)�idr;s  rr.zPTestDecorateSortUndecorate.test_key_with_mutating_del.<locals>.SortKiller.__lt__�s���$�x�x�"�U�)�)�+�+rN)r2r3r4r'r�r.�r�s�r�
SortKillerr��sL�������
�
�
�
$�
$�
$�
$�
$�
,�
,�
,�
,�
,rr�r)r[rXrZr^rtr�r&r�r�s  @r�test_key_with_mutating_delz5TestDecorateSortUndecorate.test_key_with_mutating_del�sm����E�"�I�I����	,�	,�	,�	,�	,�	,�	,��	,�	,�	,�	
���*�d�i�Z��@�@�@�@�@rc���ttd�����G�fd�dt��}|�t�j|���dS)Nrc� ��eZdZd�Z�fd�ZdS)�WTestDecorateSortUndecorate.test_key_with_mutating_del_and_exception.<locals>.SortKillerc� �|dkrt�dS�NrrJr�s  rr'z`TestDecorateSortUndecorate.test_key_with_mutating_del_and_exception.<locals>.SortKiller.__init__�s���q�5�'�&�&�'�'rc�T���dd�=ttd�����dd�<dSr�)r[rXr�s �rr�z_TestDecorateSortUndecorate.test_key_with_mutating_del_and_exception.<locals>.SortKiller.__del__�s+�������G��u�R�y�y�/�/��Q�Q�Q���rN)r2r3r4r'r�r�s�rr�r��s=�������
'�
'�
'�
*�
*�
*�
*�
*�
*�
*rr�r)r[rXrZr^r+rr�s  @r�(test_key_with_mutating_del_and_exceptionzCTestDecorateSortUndecorate.test_key_with_mutating_del_and_exception�sm����E�"�I�I����	*�	*�	*�	*�	*�	*�	*��	*�	*�	*�	
���,��	�z��B�B�B�B�Brc
��ttd����}tj|��|�d���|�|ttddd������dS)Nr T)r\�c���)r[rXr*r]rr�r�s  r�test_reversez'TestDecorateSortUndecorate.test_reverse�sg���E�#�J�J������t�����	�	�$�	��������t�E�"�R��O�O�4�4�5�5�5�5�5rc��d�td��D��}|dd�}|dd�}d�}d�}|�t|��d���|�t|�����|�||��|�d�d���|�||��dS)	Nc�:�g|]}tjd��|f��Sr�rRr�s  rrPzETestDecorateSortUndecorate.test_reverse_stability.<locals>.<listcomp>�r�rr�c�<�|d|d}}||k||kz
Sr�r=�rLrc�x0�y0s    rr�zATestDecorateSortUndecorate.test_reverse_stability.<locals>.my_cmp��&���q�T�1�Q�4��B���G��R��(�(rc�<�|d|d}}||k||kz
Sr�r=r�s    r�my_cmp_reversedzJTestDecorateSortUndecorate.test_reverse_stability.<locals>.my_cmp_reversed�r�rT)rr\rc��|dSr�r=rKs rrEzCTestDecorateSortUndecorate.test_reverse_stability.<locals>.<lambda>s
���1��r)rXrrr�)r&r��copy1�copy2r�r�s      r�test_reverse_stabilityz1TestDecorateSortUndecorate.test_reverse_stability�s���?�?�E�#�J�J�?�?�?���Q�Q�Q����Q�Q�Q���	)�	)�	)�	)�	)�	)�	
�	�	�j��(�(�$�	�7�7�7�
�
�
�z�/�2�2�
�3�3�3�����u�%�%�%�
�
�
�~�~�t�
�4�4�4�����u�%�%�%�%�%rN)r2r3r4r�r�r�r�r�r�r�r�r�r=rrr�r��s�������*�*�*�C�C�C�%�%�%�$�$�$�8�8�8�
A�
A�
A�
C�
C�
C�(6�6�6�&�&�&�&�&rr�c�f�tjd��tj|��|dd�}d�|D��}d�|D��}|||fD]`}t|��}d�td�|D����D��}t	||��D]\}}|�||����adS)Nrc��g|]}|f��Sr=r=�rOrLs  rrPz:check_against_PyObject_RichCompareBool.<locals>.<listcomp>s��
�
�
�A�A�4�
�
�
rc��g|]}|ff��Sr=r=r�s  rrPz:check_against_PyObject_RichCompareBool.<locals>.<listcomp>s��
�
�
�q�Q�D�7�
�
�
rc��g|]
}|d��S)r	r=)rOrcs  rrPz:check_against_PyObject_RichCompareBool.<locals>.<listcomp>s��>�>�>�a�Q�q�T�>�>�>rc��g|]}d|f��S)rr=r�s  rrPz:check_against_PyObject_RichCompareBool.<locals>.<listcomp>s��*<�*<�*<�Q�A�a�5�*<�*<�*<r)r*�seedr]�sorted�zip�assertIs)	r&ro�L_1�L_2�L_3�	optimized�	reference�opt�refs	         r�&check_against_PyObject_RichCompareBoolr�s��� �K��N�N�N�
�N�1����
�A�A�A�$�C�
�
��
�
�
�C�
�
�A�
�
�
�C��3��_�$�$���1�I�I�	�>�>�6�*<�*<�!�*<�*<�*<�#=�#=�>�>�>�	��i��3�3�	$�	$�J�S�#��M�M�#�s�#�#�#�#�	$�$�$rc�>�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	S)
�TestOptimizedComparesc�T�ddgddgddgg}|D]v}|�t|j��|�td�|D��j��|�td�|D��j���wddgd	dgddgdd	gg}|D]}t||���dS)
Nr�foog)r�c��g|]}|f��Sr=r=r�s  rrPzBTestOptimizedCompares.test_safe_object_compare.<locals>.<listcomp>*s��):�):�):�1�1�$�):�):�):rc��g|]}|ff��Sr=r=r�s  rrPzBTestOptimizedCompares.test_safe_object_compare.<locals>.<listcomp>+s��)=�)=�)=�a�A�4�'�)=�)=�)=rr	g�������?�)r^r�rr�)r&�heterogeneous_listsro�float_int_listss    r�test_safe_object_comparez.TestOptimizedCompares.test_safe_object_compare$s��� !�5�z� #�U�|� (�%�0�2��%�	D�	D�A����i���0�0�0����i�):�):��):�):�):�)?�@�@�@����i�)=�)=�1�)=�)=�)=�)B�C�C�C�C��c�7�!�#�;���7���;�(��!�	<�	<�A�2�4��;�;�;�;�	<�	<rc������G��fd�dt���Gd�dt���Gd�dt�����fd�td��D��}|d	�|�t��5|���ddd��n#1swxYwY��fd
�td��D��}|d	�|�t��5d�|D�����ddd��n#1swxYwYGd�d
��}|��|��g}|�t|j��|�td�|D��j��ttd����dgzd�td��D��dgzd�td��D��d�td��D��g}|D]}t||���dS)Nc���eZdZ��fd�ZdS)�ITestOptimizedCompares.test_unsafe_object_compare.<locals>.WackyComparatorc�H����_t�||��Sr$)�	__class__rHr.)r&r,�
WackyList2�elems  ��rr.zPTestOptimizedCompares.test_unsafe_object_compare.<locals>.WackyComparator.__lt__:s���!+����z�z�$��.�.�.rNrp)r�r�s��r�WackyComparatorr�9s3�������
/�
/�
/�
/�
/�
/�
/�
/rr�c��eZdZdS)�DTestOptimizedCompares.test_unsafe_object_compare.<locals>.WackyList1N)r2r3r4r=rr�
WackyList1r�>s�������Drr�c��eZdZd�ZdS)�DTestOptimizedCompares.test_unsafe_object_compare.<locals>.WackyList2c��t�r$)rtr;s  rr.zKTestOptimizedCompares.test_unsafe_object_compare.<locals>.WackyList2.__lt__Bs�� � rNrpr=rrr�r�As#������
!�
!�
!�
!�
!rr�c�<��g|]}��|��|g����Sr=r=�rOrr�r�s  ��rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>E�2���D�D�D�Q�Z�Z����+�+�Q�/�
0�
0�D�D�Drrr�c�<��g|]}��|��|g����Sr=r=r�s  ��rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>Jr�rc��g|]}|f��Sr=r=r�s  rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>Ms�����a�a�T���rc��eZdZd�ZdS)�MTestOptimizedCompares.test_unsafe_object_compare.<locals>.PointlessComparatorc��tSr$)�NotImplementedr;s  rr.zTTestOptimizedCompares.test_unsafe_object_compare.<locals>.PointlessComparator.__lt__Rs��%�%rNrpr=rr�PointlessComparatorrQs#������
&�
&�
&�
&�
&rrc��g|]}|f��Sr=r=r�s  rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>Vs��%6�%6�%6�q�q�d�%6�%6�%6rr r�c�,�g|]}t|����Sr=�r�r�s  rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>[s��-�-�-�Q�#�a�&�&�-�-�-ru￿c�,�g|]}t|����Sr=)�bytesr�s  rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>\s��/�/�/�q�%��(�(�/�/�/rc�@�g|]}td���|����S)c��||kSr$r=r�s  rrEzMTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>.<lambda>]s
���1��rrr�s  rrPzDTestOptimizedCompares.test_unsafe_object_compare.<locals>.<listcomp>]s-��E�E�E�Q�-�*�_�_�-�-�a�0�0�E�E�Er)rHr[rXr^rtrr�r�)r&ror�listsr�r�r�r�s    @@@@r�test_unsafe_object_comparez0TestOptimizedCompares.test_unsafe_object_compare4s������
	/�	/�	/�	/�	/�	/�	/�	/�c�	/�	/�	/�
	�	�	�	�	��	�	�	�	!�	!�	!�	!�	!��	!�	!�	!�
E�D�D�D�D�%��)�)�D�D�D����u��
�
�
�z�
*�
*�	�	�
�F�F�H�H�H�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�
E�D�D�D�D�%��)�)�D�D�D����u��
�
�
�z�
*�
*�	%�	%���1����"�"�$�$�$�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%����	%�	%�	%�	%�
	&�	&�	&�	&�	&�	&�	&�	&�!�
 �
"�
"�$7�$7�$9�$9�:�����)�Q�V�,�,�,����)�%6�%6�A�%6�%6�%6�%;�<�<�<��e�C�j�j�!�!�e�I�-�-�-�%��*�*�-�-�-��
�:�/�/�E�#�J�J�/�/�/�E�E�%��*�*�E�E�E�G���	<�	<�A�2�4��;�;�;�;�	<�	<s$�?B � B$�'B$�)D�D�Dc�T�t|d�td��D����dS)Nc�,�g|]}t|����Sr=rr�s  rrPzCTestOptimizedCompares.test_unsafe_latin_compare.<locals>.<listcomp>bs4��6G�6G�6G�67�7:�!�f�f�6G�6G�6Grr �r�rXr0s r�test_unsafe_latin_comparez/TestOptimizedCompares.test_unsafe_latin_comparea�L��.�t�6G�6G�;@��:�:�6G�6G�6G�	H�	H�	H�	H�	Hrc�T�t|d�td��D����dS)Nc��g|]}|��Sr=r=r�s  rrPzBTestOptimizedCompares.test_unsafe_long_compare.<locals>.<listcomp>fs.��6G�6G�6G�67�78�6G�6G�6Grr rr0s r�test_unsafe_long_comparez.TestOptimizedCompares.test_unsafe_long_compareerrc�T�t|d�td��D����dS)Nc�,�g|]}t|����Sr=��floatr�s  rrPzCTestOptimizedCompares.test_unsafe_float_compare.<locals>.<listcomp>js4��6G�6G�6G�67�7<�A�h�h�6G�6G�6Grr rr0s r�test_unsafe_float_comparez/TestOptimizedCompares.test_unsafe_float_compareirrc��t|td��gdz��t|d�td��D����dS)N�nanr c�,�g|]}td����S)rr)rO�_s  rrPzCTestOptimizedCompares.test_unsafe_tuple_compare.<locals>.<listcomp>vs4��6G�6G�6G�67�7<�E�l�l�6G�6G�6Gr)r�rrXr0s r�test_unsafe_tuple_comparez/TestOptimizedCompares.test_unsafe_tuple_comparemsk��	/�t�e�E�l�l�^�C�5G�H�H�H�.�t�6G�6G�;@��:�:�6G�6G�6G�	H�	H�	H�	H�	Hrc���|�tgd�j��|�tddgj��|�tddgj��dS)N))��?r )F�A�)rCr	)r	rC)r^r�rr0s r�test_not_all_tuplesz)TestOptimizedCompares.test_not_all_tuplesysd�����)�%B�%B�%B�%G�H�H�H����)�h��%9�%>�?�?�?����)�h��%9�%>�?�?�?�?�?rc�\�ddg}tddg��}|�||��dS)Nr�r�)r�r�)r&r�actuals   r�test_none_in_tuplesz)TestOptimizedCompares.test_none_in_tuples~s:���y�)����I�.�/�/�������*�*�*�*�*rN)r2r3r4r�rrrrrr#r&r=rrr�r�#s�������<�<�<� +<�+<�+<�ZH�H�H�H�H�H�H�H�H�
H�
H�
H�@�@�@�
+�+�+�+�+rr��__main__r$)�testrr*�unittest�	functoolsrr
rr�TestCaserrhr�r�r�r2�mainr=rr�<module>r-se��������
�
�
�
����� � � � � � �
�/��
������@W%�W%�W%�W%�W%�x� �W%�W%�W%�v!*�!*�!*�!*�!*�x� �!*�!*�!*�JZ&�Z&�Z&�Z&�Z&��!2�Z&�Z&�Z&�z$�$�$�8^+�^+�^+�^+�^+�H�-�^+�^+�^+�D�z����H�M�O�O�O�O�O��r