관리-도구
편집 파일: test_kind.cpython-311.pyc
� �܋f� � �` � d dl Z d dlZd dlZd dlmZmZ ddlm Z G d� de j � � ZdS )� N)�_selected_int_kind_func�_selected_real_kind_func� )�utilc �� � e Zd Z ej dddd� � gZd� Zd� Zej � ej � � � � � � d� � d� � � d � � � ZdS )�TestKind�tests�src�kindzfoo.f90c �� � | j j }t d� � D ]G} ||� � t |� � k s)J d|� dt |� � �d ||� � ��� � ��HdS )z/Test `int` kind_func for integers up to 10**40.�( zselectedintkind(�): expected � but got N)�module�selectedintkind�range�selected_int_kind)�selfr �is �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/f2py/tests/test_kind.py�test_intzTestKind.test_int s� � ��+�5���r��� i� i�A�"�?�1�%�%�):��*� *� � � �h�!�h�h�1B�1�1E�1E�h�h�Ra�Ra�bc�Rd�Rd�h�h�� � � � i� i� c �� � | j j }t d� � D ]G} ||� � t |� � k s)J d|� dt |� � �d ||� � ��� � ��HdS )z� Test (processor-dependent) `real` kind_func for real numbers of up to 31 digits precision (extended/quadruple). � �selectedrealkind(r r N�r �selectedrealkindr �selected_real_kind�r r r s r � test_realzTestKind.test_real s� � � �;�7���r��� l� l�A�#�#�A�&�&�*<��+� +� � � �k�1�k�k�2D�Q�2G�2G�k�k�Td�Td�ef�Tg�Tg�k�k�� � � � l� lr �ppcz4Some PowerPC may not support full IEEE 754 precision)�reasonc �� � | j j }t dd� � D ]G} ||� � t |� � k s)J d|� dt |� � �d ||� � ��� � ��HdS )zU Test kind_func for quadruple precision [`real(16)`] of 32+ digits . r r r r r Nr r s r �test_quad_precisionzTestKind.test_quad_precision$ s� � � �;�7���r�2��� l� l�A�#�#�A�&�&�*<��+� +� � � �k�1�k�k�2D�Q�2G�2G�k�k�Td�Td�ef�Tg�Tg�k�k�� � � � l� lr N)�__name__� __module__�__qualname__r �getpath�sourcesr r �pytest�mark�xfail�platform�machine�lower� startswithr$ � r r r r s� � � � � � ��t�|�G�U�F�I�>�>�?�G�i� i� i� l� l� l� �[���'�x�'�)�)�/�/�1�1�<�<�U�C�C�T� � V� V� l� l�V� V� l� l� lr r )�osr* r- �numpy.f2py.crackfortranr r r r � r �F2PyTestr r1 r r �<module>r6 s� �� � � � � � � � � ����� � � � � � � � � � � � � �#l� #l� #l� #l� #l�t�}� #l� #l� #l� #l� #lr