o
    Ô­j~  ã                   @   s€   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d„ Z	ej
je j e	ƒ ¡ de	ƒ › d�d	�Zd
d„ ZG dd„ dejƒZdS )é    N)Úassert_array_equalÚassert_equalé   )Úutilc                   C   s*   t j t j t j t¡ddddddd¡¡S )Nz..ÚdocÚsourceÚf2pyÚcode)ÚosÚpathÚabspathÚjoinÚdirnameÚ__file__© r   r   úW/var/www/html/CropPilot/venv/lib/python3.10/site-packages/numpy/f2py/tests/test_docs.pyÚ
get_docdir   s
   
ýr   z+Could not find f2py documentation sources (z does not exists))Úreasonc                  G   s   t jjtƒ f|  Ž S )N)r
   r   r   r   )Úar   r   r   Ú_path   s   r   c                   @   s:   e Zd ZedƒedƒedƒgZdd„ Zdd„ Zdd	„ Zd
S )ÚTestDocAdvancedzasterisk1.f90zasterisk2.f90zftype.fc                 C   s   t | jdƒ}t|ƒ dƒ d S )NÚfoo1ó   123456789A12©ÚgetattrÚmoduler   ©ÚselfÚfoor   r   r   Útest_asterisk1    s   zTestDocAdvanced.test_asterisk1c                 C   s:   t | jdƒ}t|dƒdƒ t|dƒdƒ t|dƒdƒ d S )NÚfoo2é   s   12é   r   é   s   123456789A123456789Br   r   r   r   r   Útest_asterisk2$   s   zTestDocAdvanced.test_asterisk2c                 C   sŠ   | j }| ¡  t|jjdƒ d|j_g d¢|j_t|jjdƒ t|jjtjg d¢tj	d�ƒ d|jjd< t|jjtjg d¢tj	d�ƒ d S )Nr   é   )r   r!   r%   )Údtypeé-   r   )r   r'   r%   )
r   r   r   Údatar   Úxr   ÚnpÚarrayÚfloat32)r   Úftyper   r   r   Ú
test_ftype*   s   ÿÿzTestDocAdvanced.test_ftypeN)Ú__name__Ú
__module__Ú__qualname__r   Úsourcesr   r$   r.   r   r   r   r   r      s    ÿr   )r
   ÚpytestÚnumpyr*   Únumpy.testingr   r   Ú r   r   ÚmarkÚskipifr   ÚisdirÚ
pytestmarkr   ÚF2PyTestr   r   r   r   r   Ú<module>   s    	ÿþ