관리-도구
편집 파일: test_parameter.cpython-311.pyc
� �܋fe � �P � d dl Z d dlZd dlZddlmZ G d� dej � � ZdS )� N� )�utilc �@ � e Zd Z ej dddd� � ej dddd� � ej dddd� � ej dddd� � ej dddd� � gZej j d � � � Z ej j d � � � Z ej j d� � � Zej j d� � � Zej j d � � � Z ej j d� � � Zej j d� � � Zej j d� � � Zej j d� � � ZdS )�TestParameters�tests�src� parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S �N� ��dtype� � )� r r ) �np�arange�float32�pytest�raises� ValueError�module� foo_single�allclose��self�xs �r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/f2py/tests/test_parameter.py�test_constant_real_singlez(TestParameters.test_constant_real_single � � � �I�a�r�z�*�*�*�3�3�Q�3�/��� �j�$�+�"8�!�<�<�<� �I�a�r�z�*�*�*������q�!�!�!��{�1�3�3�3�4�4�4�4�4�4�4� c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S r ) r r �float64r r r r � foo_doubler r s r �test_constant_real_doublez(TestParameters.test_constant_real_double r r! c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S )Nr r r r )� r r ) r r �int32r r r r �foo_compound_intr r s r �test_constant_compound_intz)TestParameters.test_constant_compound_int) s� � � �I�a�r�x�(�(�(���1��-��� �j�$�+�">��B�B�B� �I�a�r�x�(�(�(����$�$�Q�'�'�'��{�1�3�3�3�4�4�4�4�4�4�4r! c � � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S )N� r )� r r r )r r r( r �foo_non_compound_intr r s r �test_constant_non_compound_intz-TestParameters.test_constant_non_compound_int4 sU � � �I�a�r�x�(�(�(����(�(��+�+�+��{�1�:�:�:�;�;�;�;�;�;�;r! c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S r ) r r r( r r r r �foo_intr r s r �test_constant_integer_intz(TestParameters.test_constant_integer_int; s� � � �I�a�r�x�(�(�(���1��-��� �j�$�+�"5�q�9�9�9� �I�a�r�x�(�(�(������A�����{�1�3�3�3�4�4�4�4�4�4�4r! c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S r ) r r �int64r r r r �foo_longr r s r �test_constant_integer_longz)TestParameters.test_constant_integer_longF s� � � �I�a�r�x�(�(�(���1��-��� �j�$�+�"6��:�:�:� �I�a�r�x�(�(�(������Q�����{�1�3�3�3�4�4�4�4�4�4�4r! c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S �Nr r r r )� r r ) r r r# r r r r �foor r s r �test_constant_bothz!TestParameters.test_constant_bothQ s� � � �I�a�r�z�*�*�*�3�3�Q�3�/��� �j�$�+�/�1�5�5�5� �I�a�r�z�*�*�*�����������{�1�G�G�G�H�H�H�H�H�H�Hr! c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S r8 ) r r r# r r r r �foo_nor r s r �test_constant_nozTestParameters.test_constant_no\ s� � � �I�a�r�z�*�*�*�3�3�Q�3�/��� �j�$�+�"4�a�8�8�8� �I�a�r�z�*�*�*������1�����{�1�G�G�G�H�H�H�H�H�H�Hr! c �H � t j dt j �� � d d d� }t j t | j j |� � t j dt j �� � }| j � |� � t j |g d�� � sJ �d S r8 ) r r r# r r r r �foo_sumr r s r �test_constant_sumz TestParameters.test_constant_sumg s� � � �I�a�r�z�*�*�*�3�3�Q�3�/��� �j�$�+�"5�q�9�9�9� �I�a�r�z�*�*�*������A�����{�1�G�G�G�H�H�H�H�H�H�Hr! N)�__name__� __module__�__qualname__r �getpath�sourcesr �mark�slowr r% r* r/ r2 r6 r; r>