관리-도구
편집 파일: test_size.cpython-311.pyc
� �܋f� � �P � d dl Z d dlZd dlZddlmZ G d� dej � � ZdS )� N� )�utilc � � e Zd Z ej dddd� � gZej j d� � � Z ej j d� � � Z ej j d� � � ZdS ) �TestSizeSumExample�tests�src�sizezfoo.f90c � � | j � g g� � }|dgk sJ �| j � ddgg� � }|dgk sJ �| j � ddgddgg� � }t j |ddg� � sJ �| j � ddgddgddgg� � }t j |g d �� � sJ �d S ) Nr r � � � � � � )r r � )�module�foo�np�allclose��self�rs �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/f2py/tests/test_size.py�test_allzTestSizeSumExample.test_all s� � ��K�O�O�R�D�!�!���Q�C�x�x�x�x��K�O�O�a��V�H�%�%���Q�C�x�x�x�x��K�O�O�a��V�a��V�,�-�-���{�1�q�!�f�%�%�%�%�%��K�O�O�a��V�a��V�a��V�4�5�5���{�1�j�j�j�)�)�)�)�)�)�)� c � � | j � g g� � }t j |j t j g g� � � � sJ �| j � ddgg� � }t j |dgdgg� � sJ �| j � g d�g d�g� � }t j |ddgddgd d gg� � sJ �d S )Nr r g �?g @�r r r �r r r r r r r )r �transr r �T�arrayr s r �test_transposez!TestSizeSumExample.test_transpose s� � ��K���r�d�#�#���{�1�3���"����/�/�/�/�/��K����1�v�h�'�'���{�1��t�b�T�l�+�+�+�+�+��K���y�y�y�)�)�)�4�5�5���{�1��1�v��1�v��1�v�6�7�7�7�7�7�7�7r c �H � | j � g g� � }t j |g � � sJ �| j � ddgg� � }t j |ddg� � sJ �| j � g d�g d�g� � }t j |g d�� � sJ �d S )Nr r r r )r r r r r r )r �flattenr r r s r �test_flattenzTestSizeSumExample.test_flatten$ s� � ��K�����%�%���{�1�b�!�!�!�!�!��K���!�Q���)�)���{�1�q�!�f�%�%�%�%�%��K������I�I�I� 6�7�7���{�1�0�0�0�1�1�1�1�1�1�1r N)�__name__� __module__�__qualname__r �getpath�sources�pytest�mark�slowr r"