a
    XŠÝg~  ã                   @   sF   d dl mZ ddlZddlZddlmZ G dd„ dejƒZdd„ Z	dS )	é   )Úutilé    N)Úassert_allclosec                   @   s>   e Zd Ze dddd¡gZdd„ Zdd„ Zd	d
„ Zdd„ Z	dS )ÚTestISOCÚtestsÚsrcZ
isocintrinzisoCtests.f90c                 C   s$   | j j dd¡}d}||ks J ‚d S )Nr   é   é   )ÚmoduleÚcoddityZc_add©ÚselfÚoutÚexp_out© r   úh/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/numpy/f2py/tests/test_isoc.pyÚtest_c_double   s    zTestISOC.test_c_doublec                 C   s$   | j j dd¡}d}||ks J ‚d S )Nr   é   é   )r
   r   Úwatr   r   r   r   Útest_bindc_function   s    zTestISOC.test_bindc_functionc                 C   s$   | j j dd¡}d}||ks J ‚d S )Nr   r   é   )r
   r   Zc_add_int64r   r   r   r   Útest_bindc_kinds   s    zTestISOC.test_bindc_kindsc                 C   sB   t  g d¢¡}t  g d¢¡}| jj ||¡}|d }t||ƒ d S )N)r   r   r	   r   )ÚnpÚarrayr
   r   Zadd_arrr   )r   ÚaÚbr   r   r   r   r   Útest_bindc_add_arr   s
    zTestISOC.test_bindc_add_arrN)
Ú__name__Ú
__module__Ú__qualname__r   ZgetpathÚsourcesr   r   r   r   r   r   r   r   r      s   ÿr   c                  C   sp   ddl m}  dddii}dddii}dd	d
œ}ddddœidg }}| |||ƒ\}}||ks`J ‚||kslJ ‚d S )Nr   )Úprocess_f2cmap_dictÚintegerÚ8Úrubbish_typeZINTEGERÚ4ÚintÚlong)r'   r%   )r$   r&   )Znumpy.f2py.auxfuncsr"   )r"   Z
f2cmap_allZnew_mapZc2py_mapZexp_mapZ
exp_maptypZres_mapZ
res_maptypr   r   r   Útest_process_f2cmap_dict&   s    
r)   )
Ú r   Únumpyr   ZpytestZnumpy.testingr   ZF2PyTestr   r)   r   r   r   r   Ú<module>   s
    