
    thh                     Z    d dl Z d dlZd dlmZ ddlmZ  G d dej                  Zd Z	dS )    N)assert_allclose   )utilc                   r    e Zd Z ej        dddd          gZej        j        d             Z	d Z
d Zd Zd	S )
TestISOCtestssrc
isocintrinzisoCtests.f90c                 Z    | j         j                            dd          }d}||k    sJ d S )Nr         )modulecoddityc_addselfoutexp_outs      Q/var/www/histauto/venv/lib/python3.11/site-packages/numpy/f2py/tests/test_isoc.pytest_c_doublezTestISOC.test_c_double   s2    k!''1--g~~~~~~    c                 Z    | j         j                            dd          }d}||k    sJ d S )Nr         )r   r   watr   s      r   test_bindc_functionzTestISOC.test_bindc_function   s2    k!%%a,,g~~~~~~r   c                 Z    | j         j                            dd          }d}||k    sJ d S )Nr   r      )r   r   c_add_int64r   s      r   test_bindc_kindszTestISOC.test_bindc_kinds   s2    k!--a44g~~~~~~r   c                     t          j        g d          }t          j        g d          }| j        j                            ||          }|dz  }t          ||           d S )N)r   r   r   r   )nparrayr   r   add_arrr   )r   abr   r   s        r   test_bindc_add_arrzTestISOC.test_bindc_add_arr"   sa    HYYYHYYYk!))!Q//a%W%%%%%r   N)__name__
__module____qualname__r   getpathsourcespytestmarkslowr   r   r    r'    r   r   r   r   	   s~        We\?CCG
 [      & & & & &r   r   c                      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    sJ d S )Nr   )process_f2cmap_dictinteger8rubbish_typeINTEGER4intlong)r8   r5   )r4   r7   )numpy.f2py.auxfuncsr2   )r2   
f2cmap_allnew_mapc2py_mapexp_map
exp_maptypres_map
res_maptyps           r   test_process_f2cmap_dictrB   *   s    777777c>23J3,'Gf55H%^%'H'HIE7ZG .-j'8LLGZ g######r   )
r-   numpyr"   numpy.testingr    r   F2PyTestr   rB   r0   r   r   <module>rG      s         ) ) ) ) ) )      & & & & &t} & & &B$ $ $ $ $r   