
    ,|h~                         d dl Z d dlZd dlZd dlmZmZ ddlmZ d Z	ej                  j                  e j                  j                   e	              d e	        d      Zd	 Z G d
 dej                         Zy)    N)assert_array_equalassert_equal   )utilc                      t         j                  j                  t         j                  j                  t         j                  j	                  t
              ddddddd            S )Nz..docsourcef2pycode)ospathabspathjoindirname__file__     Y/var/www/html/test/engine/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_docs.py
get_docdirr      sH     77??277<<
!dDx) * *r   z+Could not find f2py documentation sources (z does not exists))reasonc                  R    t        j                  j                  t               f| z    S )N)r   r   r   r   )as    r   _pathr      s    77<<:</A-//r   c                   L    e Zd Z ed       ed       ed      gZd Zd Zd Zy)TestDocAdvancedzasterisk1.f90zasterisk2.f90zftype.fc                 R    t        | j                  d      }t         |       d       y )Nfoo1   123456789A12getattrmoduler   selffoos     r   test_asterisk1zTestDocAdvanced.test_asterisk1    s    dkk6*SUO,r   c                     t        | j                  d      }t         |d      d       t         |d      d       t         |d      d       y )Nfoo2   s   12   r      s   123456789A123456789Br   r"   s     r   test_asterisk2zTestDocAdvanced.test_asterisk2$   s=    dkk6*SVU#SWo.SW56r   c                 J   | j                   }|j                          t        |j                  j                  d       d|j                  _        g d|j                  _        t        |j                  j                  d       t        |j                  j
                  t        j                  g dt        j                               d|j                  j
                  d<   t        |j                  j
                  t        j                  g dt        j                               y )Nr      )r   r(   r-   )dtype-   r   )r   r/   r-   )
r!   r$   r   datar   xr   nparrayfloat32)r#   ftypes     r   
test_ftypezTestDocAdvanced.test_ftype*   s    		UZZ\\1%

 

UZZ\\1%5::<<88IRZZ@	B

Q5::<<88JbjjA	Cr   N)__name__
__module____qualname__r   sourcesr%   r+   r6   r   r   r   r   r      s0    _%u_'=Y!G-7Cr   r   )r   pytestnumpyr2   numpy.testingr   r    r   r   markskipifr   isdir
pytestmarkr   F2PyTestr   r   r   r   <module>rD      st    	   : * [[
jl##/1   3
0Cdmm Cr   