o
    ee                     @   s:   d dl Z d dlZd dlZddlmZ G dd dejZdS )    N   )utilc                
   @   s   e Zd ZeddddeddddeddddeddddeddddgZejjd	d
 Z	ejjdd Z
ejjdd Zejjdd Zejjdd Zejjdd Zejjdd Zejjdd Zejjdd ZdS )TestParameterstestssrc	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90c                 C   `   t jdt jdd d d }tt| jj| t jdt jd}| j| t |g ds.J d S N   dtype      )   r   r   )	nparangefloat32pytestraises
ValueErrormodule
foo_singleallcloseselfx r   R/var/www/html/venv/lib/python3.10/site-packages/numpy/f2py/tests/test_parameter.pytest_constant_real_single   
   z(TestParameters.test_constant_real_singlec                 C   r   r	   )	r   r   float64r   r   r   r   
foo_doubler   r   r   r   r   test_constant_real_double   r   z(TestParameters.test_constant_real_doublec                 C   r   )Nr
   r   r   r   )   r   r   )	r   r   int32r   r   r   r   foo_compound_intr   r   r   r   r   test_constant_compound_int)   r   z)TestParameters.test_constant_compound_intc                 C   s4   t jdt jd}| j| t |g dsJ d S )N   r   )   r   r   r   )r   r   r$   r   foo_non_compound_intr   r   r   r   r   test_constant_non_compound_int4   s   z-TestParameters.test_constant_non_compound_intc                 C   r   r	   )	r   r   r$   r   r   r   r   foo_intr   r   r   r   r   test_constant_integer_int;   r   z(TestParameters.test_constant_integer_intc                 C   r   r	   )	r   r   int64r   r   r   r   foo_longr   r   r   r   r   test_constant_integer_longF   r   z)TestParameters.test_constant_integer_longc                 C   r   Nr
   r   r   r   )   r   r
   )	r   r   r    r   r   r   r   foor   r   r   r   r   test_constant_bothQ   r   z!TestParameters.test_constant_bothc                 C   r   r0   )	r   r   r    r   r   r   r   foo_nor   r   r   r   r   test_constant_no\   r   zTestParameters.test_constant_noc                 C   r   r0   )	r   r   r    r   r   r   r   foo_sumr   r   r   r   r   test_constant_sumg   r   z TestParameters.test_constant_sumN)__name__
__module____qualname__r   getpathsourcesr   markslowr   r"   r&   r*   r,   r/   r3   r5   r7   r   r   r   r   r   	   s2    














r   )osr   numpyr    r   F2PyTestr   r   r   r   r   <module>   s
    