U
    e~                     @   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sourceZf2pycode)ospathabspathjoindirname__file__ r   r   [/var/www/html/assets/scripts/venv/lib/python3.8/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 )NZ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 )NZ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_dddg|j_t|jjd t|jjtjdddgtj	d d|jjd< t|jjtjdddgtj	d d S )Nr      r   r   )Zdtype-   )
r   r   r   datar   xr   nparrayZfloat32)r   Z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	   Zpytestnumpyr&   Znumpy.testingr   r    r   r   markZskipifr
   isdirZ
pytestmarkr   ZF2PyTestr   r   r   r   r   <module>   s   	