
    ,|h	                         d dl Z d dlZd dlZddlmZ  G d dej                        Z G d dej                        Z G d d	ej                        Z	d
 Z
 G d dej                        Zy)    N   )utilc                   p    e Zd Z ej                  dddd      gZej                  j                  d        Z	y)TestIntentInOuttestssrc
regression	inout.f90c                 l   t        j                  dt         j                        d d d   }t        j                  t
        | j                  j                  |       t        j                  dt         j                        }| j                  j                  |       t        j                  |g d      sJ y )N   dtype      )r   r   r   )	nparangefloat32pytestraises
ValueErrormodulefooallclose)selfxs     _/var/www/html/test/engine/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_regression.py
test_inoutzTestIntentInOut.test_inout   ss     IIarzz*3Q3/j$++//15 IIarzz*{{1i(((    N)
__name__
__module____qualname__r   getpathsourcesr   markslowr    r   r   r   r   	   s7    t||GUL+FGG[[) )r   r   c                   p    e Zd Z ej                  dddd      gZej                  j                  d        Z	y)TestNegativeBoundsr   r   negative_boundszissue_20853.f90c           
         t        j                  d      }d}d}d }| j                  j                  |||d  |||             }t        j                  dt         j                        }t        j
                  ||      sJ y )N   i   c                     || z
  dz   S )Nr   r&   )xlxhs     r   uboundz0TestNegativeBounds.test_negbound.<locals>.ubound$   s    7Q;r   )is_ie_arr   r   )r   r   r   r   r   r   )r   xvecxlowxhighr0   rvalexpvals          r   test_negboundz TestNegativeBounds.test_negbound   ss    yy}	{{4U !5&u"56  82rzz2{{4(((r   N)
r   r    r!   r   r"   r#   r   r$   r%   r:   r&   r   r   r(   r(      s9    t||GU,=?PQRG[[) )r   r(   c                   p    e Zd Z ej                  dddd      gZej                  j                  d        Z	y)TestNumpyVersionAttributer   r   r	   r
   c                     t        | j                  d      sJ t        | j                  j                  t              sJ t
        j                  | j                  j                  k(  sJ y )N__f2py_numpy_version__)hasattrr   
isinstancer>   strr   __version__r   s    r   test_numpy_version_attributez6TestNumpyVersionAttribute.test_numpy_version_attribute1   sS     t{{$<=== $++<<cBBB ~~!C!CCCCr   N)
r   r    r!   r   r"   r#   r   r$   r%   rD   r&   r   r   r<   r<   ,   s;     t||GUL+FGG[[	D 	Dr   r<   c                      t         j                  j                         } t        j                  |       }dD ]  }||v rJ  y )N)zfortranobject.czfortranobject.h)r   f2pyget_includeoslistdir)incdirfnames_in_dirfnames      r   test_include_pathrM   >   s?    WW  "FJJv&M7 &%%%&r   c                       e Zd ZdZ ej
                  ddddd       ej
                  ddddd      gZej                  j                  d        Z
y	)
TestModuleAndSubroutineexampler   r   r	   gh25337zdata.f90zuse_data.f90c                     | j                   j                  j                  d       dt        | j                         v sJ y )Nr   data)r   rS   	set_shiftdirrC   s    r   test_gh25337z$TestModuleAndSubroutine.test_gh25337J   s1    ""1%T[[))))r   N)r   r    r!   module_namer   r"   r#   r   r$   r%   rV   r&   r   r   rO   rO   E   sY    Kt||GUL)ZPt||GUL)^TVG [[* *r   rO   )rH   r   numpyr    r   F2PyTestr   r(   r<   rM   rO   r&   r   r   <module>r[      sX    	   )dmm ) ) )&D D$&*dmm *r   