U
    em                     @   sf   d dl Z d dlZd dlZddlmZ G dd dejZG dd dejZG dd	 d	ejZ	d
d Z
dS )    N   )utilc                   @   s.   e Zd ZeddddgZejjdd Z	dS )TestIntentInOuttestssrc
regression	inout.f90c                 C   sb   t jdt jdd d d }tt| jj| t jdt jd}| j| t |dddgs^t	d S )N   Zdtype      r   )
nparangefloat32pytestZraises
ValueErrormodulefooallcloseAssertionError)selfx r   a/var/www/html/assets/scripts/venv/lib/python3.8/site-packages/numpy/f2py/tests/test_regression.py
test_inout   s
    zTestIntentInOut.test_inoutN)
__name__
__module____qualname__r   getpathsourcesr   markslowr   r   r   r   r   r   	   s   r   c                   @   s.   e Zd ZeddddgZejjdd Z	dS )TestNegativeBoundsr   r   Znegative_boundszissue_20853.f90c                 C   s^   t d}d}d}dd }| jj|||d ||| d}t jdt jd}t ||sZtd S )	N   i   c                 S   s   ||  d S )Nr   r   )Zxlxhr   r   r   ubound$   s    z0TestNegativeBounds.test_negbound.<locals>.ubound)is_Zie_Zarr   r
   )r   r   r   r   r   r   r   )r   ZxvecZxlowZxhighr&   rvalZexpvalr   r   r   test_negbound   s    

z TestNegativeBounds.test_negboundN)
r   r   r   r   r   r   r   r    r!   r*   r   r   r   r   r"      s   r"   c                   @   s.   e Zd ZeddddgZejjdd Z	dS )TestNumpyVersionAttributer   r   r   r   c                 C   s8   t | jdstt| jjts"ttj| jjks4td S )N__f2py_numpy_version__)hasattrr   r   
isinstancer,   strr   __version__)r   r   r   r   test_numpy_version_attribute1   s    z6TestNumpyVersionAttribute.test_numpy_version_attributeN)
r   r   r   r   r   r   r   r    r!   r1   r   r   r   r   r+   ,   s   r+   c                  C   s.   t j } t| }dD ]}||kstqd S )N)zfortranobject.czfortranobject.h)r   Zf2pyZget_includeoslistdirr   )incdirZfnames_in_dirfnamer   r   r   test_include_path>   s    

r6   )r2   r   numpyr    r   ZF2PyTestr   r"   r+   r6   r   r   r   r   <module>   s   