Sindbad~EG File Manager
�
'Μgj � � � d dl Z d dlZd dlZd dlZd dlmZ d� Zd� Z G d� de j � Z e
dk( r e j � yy)� N)� ALWAYS_EQc # �d K � | |z
|z dk r!|| |z
|z z
}| |k7 r| �� | |z
} | |k7 r�y y y �w)Nr � ��start�stop�steps �,/usr/local/lib/python3.12/test/test_range.py�pyranger
sO � �� �
������!�
�����%�%���t�m��K��T�M�E� �t�m� "�s �*0�0c �@ � || |z
|z z
}t ||z
| |z
| � S �N)r r s r
�pyrange_reversedr s. � ��U�T�\�T�!�!�D��4�$�;����t�e�4�4� c �� � e Zd Zd d�Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z
d
� Zd� Zd� Z
d
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z y)!� RangeTestNc �� � |�,t j ||� }t j ||� }t � }t j |||�� }t |� D ]� \ }\ }} || k( r�||k( r#| j dj
||| � � �7| |k( r#| j dj
|||� � �_| j dj
||| |� � �� y )N)� fillvaluez;{}: iterator ended unexpectedly at position {}; expected {}z/{}: unexpected excess element {} at position {}z5{}: wrong element at position {}; expected {}, got {})� itertools�islice�object�zip_longest� enumerate�fail�format)
�self�xs�ys�test_id�limit�sentinel�pairs�i�x�ys
r
�assert_iterators_equalz RangeTest.assert_iterators_equal s� � � ���!�!�"�e�,�B��!�!�"�e�,�B��8���%�%�b�"��A��"�5�)�I�A�v��1��A�v���h��� � � 8�8>��w��1�8M�O��h��� � � (�(.��w��1�(=�?� � � � 0�06��w��1�a�0H�J� *r c
�6 � | j t t d� � g d�� | j t t dd� � g d�� | j t t d� � g � | j t t d� � g � | j t t ddd� � g d �� | j t t dd
d� � g d�� d}d}d
}| j t t ||dz � � ||dz g� | j t t |dz |d� � |dz |dz g� | j t t |dz |d� � |dz |dz g� t t |||� � }| j ||� | j ||� | j t |� d� t t ||| � � }| j ||� | j ||� | j t |� d� t t | | | � � }| j | |� | j | |� | j t |� d� | j
t t � | j
t t dddd� | j
t t ddd� | j
t t ddd� | j
t t ddd� | j
t t ddd� | j
t t ddd� | j
t t dd� | j
t t ddd� | j t t dt j t j dz
� � d� t t j t j d� }| j t |� t j � y )N� )r � � r( � )r( r) r'