관리-도구
편집 파일: test_Numbers.cpython-311.pyc
� O�Dg>x � �� � d Z ddlZddlZddlmZ ddlT ddlmZ G d� dej � � Z G d� d e � � Z G d � dej � � Zi fd�Ze d k rd� Z ej d�� � dS dS )zSelf-test for Math.Numbers� N)�list_test_cases)�*)� IntegerNativec �F � e Zd Zd� 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 d� Z!d � Z"d!� Z#d"� Z$d#� Z%d$� Z&d%� Z'd&� Z(d'� Z)d(� Z*d)� Z+d*� Z,d+� Z-d,� Z.d-� Z/d.� Z0d/� Z1d0� Z2d1� Z3d2� Z4d3� Z5d4� Z6d5S )6�TestIntegerBasec � � t d� � �)NzTo be implemented)�NotImplementedError��selfs ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Math/test_Numbers.py�setUpzTestIntegerBase.setUp0 s � �!�"5�6�6�6� c �, � t | j |� � S �N)�map�Integer)r �args r �IntegerszTestIntegerBase.Integers3 s � ��4�<��%�%�%r c �@ � | j } |d� � } ||� � } |d� � }| � t |d� � |d� � } |d� � } |d� � } |d� � } |d� � } | � ||� � | � |d� � | � ||� � | � |d� � | � |d� � | � |d� � | � |d� � | � |d� � | � | d� � | � ||k � � ||� � }| � ||� � | � |d � � d k � � d S ) N� ���g �?l d( l���� d( � l �� l ���� r )r �assertRaises� ValueError�assertEqual�assertFalse) r r �v1�v2�v3�v4�v5�v6�v7�v8s r �test_init_and_equalityz&TestIntegerBase.test_init_and_equality6 s� � ��,�� �W�R�[�[�� �W�R�[�[�� �W�R�[�[�����*�g�s�3�3�3� �W�V�_�_�� �W�W� � �� �W�V�_�_�� �W�Z� � �� �W�'� (� (������R� � � �����R� � � �����R� � � �����R� � � �����X�&�&�&�����Y�'�'�'�����V�$�$�$�����Z�(�(�(�����/�0�0�0�����r��"�"�"� �W�R�[�[������R� � � ���������t�+�,�,�,�,�,r c �� � | � dddz � � \ }}| � t |� � d� � | � t |� � ddz � � d S )Ni��� �� )r r �int�r r r s r �test_conversion_to_intz&TestIntegerBase.test_conversion_to_intW s_ � ����s�A��I�.�.���B�����R���#�&�&�&�����R���!�t�)�,�,�,�,�,r c � � | � ddddz � � \ }}}| � |dk � � | � |dk � � | � |dk � � | � |ddz k � � d S )Nr i����r'