관리-도구
편집 파일: test_abc.cpython-311.pyc
� �܋f� � �H � d dl mZ d dlZd dlZd dlmZ G d� d� � ZdS )� )�assert_N)�sctypesc �, � e Zd Zd� Zd� Zd� Zd� Zd� ZdS )�TestABCc � � t t t j t j � � � � t t t j t j � � � � t t t j t j � � � � t t t j t j � � � � t t t j t j � � � � t t t j t j � � � � t t t j t j � � � � d S )N)r � issubclass�np�number�numbers�Number�inexact�Complex�complexfloating�floating�Real�integer�Integral� signedinteger�unsignedinteger)�selfs �l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_abc.py� test_abstractzTestABC.test_abstract s� � �� �2�9�g�n�5�5�6�6�6�� �2�:�w��7�7�8�8�8�� �2�-�w��?�?�@�@�@�� �2�;���5�5�6�6�6�� �2�:�w�'7�8�8�9�9�9�� �2�+�W�-=�>�>�?�?�?�� �2�-�w�/?�@�@�A�A�A�A�A� c �� � t d D ]�}t t |� � t j � � |j � d�� � t t |t j � � |j � d�� � t t |� � t j � � |j � d�� � t t |t j � � |j � d�� � ��d S )N�floatz is not instance of Realz is not subclass of Realz is instance of Rationalz is subclass of Rational)r r � isinstancer r �__name__r �Rational�r �ts r �test_floatszTestABC.test_floats s� � ���!� =� =�A��J�q�q�s�s�G�L�1�1��z�;�;�;� =� =� =��J�q�'�,�/�/��z�;�;�;� =� =� =�� �1�1�3�3��(8�9�9�9��z�;�;�;� =� =� =�� �1�g�&6�7�7�7��z�;�;�;� =� =� =� =� =� =r c �� � t d D ]�}t t |� � t j � � |j � d�� � t t |t j � � |j � d�� � t t |� � t j � � |j � d�� � t t |t j � � |j � d�� � ��d S )N�complexz is not instance of Complexz is not subclass of Complexz is instance of Realz is subclass of Real)r r r r r r r r r s r �test_complexzTestABC.test_complex s� � ���#� 9� 9�A��J�q�q�s�s�G�O�4�4��z�>�>�>� @� @� @��J�q�'�/�2�2��z�>�>�>� @� @� @�� �1�1�3�3���5�5�5��z�7�7�7� 9� 9� 9�� �1�g�l�3�3�3��z�7�7�7� 9� 9� 9� 9� 9� 9r c � � t d D ]j}t t |� � t j � � |j � d�� � t t |t j � � |j � d�� � �kd S )N�int� is not instance of Integral� is not subclass of Integral�r r r r r r r r s r �test_intzTestABC.test_int* s� � ���� A� A�A��J�q�q�s�s�G�$4�5�5��z�?�?�?� A� A� A��J�q�'�"2�3�3��z�?�?�?� A� A� A� A� A� Ar c � � t d D ]j}t t |� � t j � � |j � d�� � t t |t j � � |j � d�� � �kd S )N�uintr'