Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_int_literal.cpython-311.pyc |
�
�Ke� � �f � d Z ddlZ G d� dej � � Zedk r ej � � dS dS )zaTest correct treatment of hex/oct constants.
This is complex because of changes due to PEP 237.
� Nc �2 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�
TestHexOctBinc � � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � d d � � | � dd� � | � dd� � | � dd� � | � d d � � d S )
Nr � l �MW� � ��� ���� ��� �������� ��assertEqual��selfs �?/usr/local/apps/python3/lib/python3.11/test/test_int_literal.py�test_hex_baselinezTestHexOctBin.test_hex_baseline
sZ � �����c�"�"�"�����c�"�"�"����*�,=�>�>�>�����a� � � �����r�"�"�"�����Z�0�0�0����+�-@�A�A�A������#�#�#�����#�&�&�&������4�4�4����.�0D�E�E�E�����q�!�!�!������$�$�$�����k�2�2�2����,�.B�C�C�C�C�C� c � � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � d S � Nl l �� i �l������ l l ���� l���� l�������� r
r s r �test_hex_unsignedzTestHexOctBin.test_hex_unsigned s" � �����Z�0�0�0�����Z�0�0�0������4�4�4������4�4�4�
����k�2�2�2�����k�2�2�2�
���+�-@�A�A�A����+�-A�B�B�B����.�0D�E�E�E����.�0E�F�F�F�
���,�.B�C�C�C����,�.C�D�D�D�D�Dr c � � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � d d � � | � dd� � | � dd� � | � dd� � | � d d � � d S )
Nr r iw9 r r r r
r r r
r s r �test_oct_baselinezTestHexOctBin.test_oct_baseline6 sY � �����c�"�"�"�����c�"�"�"�����I�.�.�.�����a� � � �����r�"�"�"�����
�3�3�3����0�2E�F�F�F������#�#�#�����#�&�&�&����)�;�7�7�7����3�5I�J�J�J�����q�!�!�!������$�$�$������5�5�5����1�3G�H�H�H�H�Hr c � � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � d S r r
r s r �test_oct_unsignedzTestHexOctBin.test_oct_unsignedK s$ � �����
�3�3�3�����
�3�3�3����)�;�7�7�7����)�;�7�7�7�
�����5�5�5������5�5�5�
���1�3F�G�G�G����1�3G�H�H�H����4�6J�K�K�K����4�6K�L�L�L�
���2�4H�I�I�I����2�4I�J�J�J�J�Jr c � � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � d d � � | � dd� � | � dd� � | � dd� � | � d d � � d S )
Nr r iU r r r r
r r r
r s r �test_bin_baselinezTestHexOctBin.test_bin_baselineb s[ � �����c�"�"�"�����c�"�"�"�����
�6�6�6�����a� � � �����"�%�%�%����:�J�G�G�G����Z�\o�p�p�p������#�#�#�����S�)�)�)����=�{�K�K�K����]�_s�t�t�t�����q�!�!�!�����3�'�'�'����;�[�I�I�I����[�]q�r�r�r�r�rr c � � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � | � dd� � d S r r
r s r �test_bin_unsignedzTestHexOctBin.test_bin_unsignedw s( � ����;�Z�H�H�H����;�Z�H�H�H����>��L�L�L����>��L�L�L�
���<�k�J�J�J����<�k�J�J�J�
���[�]p�q�q�q����[�]q�r�r�r����^�`t�u�u�u����^�`u�v�v�v�
���\�^r�s�s�s����\�^s�t�t�t�t�tr N) �__name__�
__module__�__qualname__r r r r r r � r r r r s� � � � � � �D� D� D�*E� E� E�.I� I� I�*K� K� K�.s� s� s�*u� u� u� u� ur r �__main__)�__doc__�unittest�TestCaser r �mainr"