o
    >~#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                   @   sF   e Zd Ze dddd¡gZejjdd„ ƒZ	dd„ Z
d	d
„ Zdd„ ZdS )ÚTestISOCÚtestsÚsrcÚ
isocintrinzisoCtests.f90c                 C   ó$   | j j dd¡}d}||ksJ ‚d S )Nr   é   é   )ÚmoduleÚcoddityÚc_add©ÚselfÚoutÚexp_out© r   ú/var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/numpy/f2py/tests/test_isoc.pyÚtest_c_double   s   zTestISOC.test_c_doublec                 C   r	   )Nr   é   é   )r   r   Úwatr   r   r   r   Útest_bindc_function   ó   zTestISOC.test_bindc_functionc                 C   r	   )Nr   r   é   )r   r   Úc_add_int64r   r   r   r   Útest_bindc_kinds   r   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   Úadd_arrr   )r   ÚaÚbr   r   r   r   r   Útest_bindc_add_arr   s
   zTestISOC.test_bindc_add_arrN)Ú__name__Ú
__module__Ú__qualname__r   ÚgetpathÚsourcesÚpytestÚmarkÚslowr   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s0J ‚||ks6J ‚d S )Nr   )Úprocess_f2cmap_dictÚintegerÚ8Úrubbish_typeÚINTEGERÚ4ÚintÚlong)r2   r/   )r.   r1   )Únumpy.f2py.auxfuncsr,   )r,   Ú
f2cmap_allÚnew_mapÚc2py_mapÚexp_mapÚ
exp_maptypÚres_mapÚ
res_maptypr   r   r   Útest_process_f2cmap_dict'   s   
r<   )
Ú r   Únumpyr   r)   Únumpy.testingr   ÚF2PyTestr   r<   r   r   r   r   Ú<module>   s    !