Sindbad~EG File Manager
�
'Μgb � �
� d dl Z d dlmZ d dlmZ d dlmZ dZ G d� d� Z G d� d e� Z G d
� dee j � Z G d� d
ee j � Z G d� dee j � Z
G d� dee j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� dee j � Z G d � d!ee j � Z G d"� d#e� Z G d$� d%e� Z G d&� d'e� Z G d(� d)e j � Zed*k( r e j: � yy)+� N)�repeat)�deque)�length_hint�
c � � e Zd Zd� Zy)�TestInvariantWithoutMutationsc �L � | j }t t dt dz � � D ]( }| j t |� |� t
|� �* | j t |� d� | j t t |� | j t |� d� y �N� r ) �it�reversed�range�n�assertEqualr �next�assertRaises�
StopIteration)�selfr �is �./usr/local/lib/python3.12/test/test_iterlen.py�test_invariantz,TestInvariantWithoutMutations.test_invariant6 s{ � �
�W�W���%��1�Q�3�-�(�A����[��_�a�0���H� )�
����R��!�,����-��r�2�����R��!�,� N)�__name__�
__module__�__qualname__r � r r r r 4 s � �-r r c � � e Zd Zd� Zy)�TestTemporarilyImmutablec �@ � | j }| j t |� t � t |� | j t |� t dz
� | j � | j
t t |� | j t |� d� y r
)r r r r r �mutater �RuntimeError)r r s r �test_immutable_during_iterationz8TestTemporarilyImmutable.test_immutable_during_iterationA so � � �W�W������R��!�,��R������R��!�A�#�.����
����,��b�1�����R��!�,r N)r r r r"