o
    6aF                     @   sR   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	G dd dej
ZdS )	    N)assert_raisesassert_equal   )utilc                  G   s   t jjt jtf|   S )N)ospathjoindirname__file__)a r   A/usr/lib/python3/dist-packages/numpy/f2py/tests/test_parameter.py_path
   s   r   c                   @   s   e Zd Zedddedddedddeddde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src	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90c                 C   X   t jdt jdd d d }tt| jj| t jdt jd}| j| t|g d d S N   dtype      )   r   r   )nparangefloat32r   
ValueErrormodule
foo_singler   selfxr   r   r   test_constant_real_single   
   z(TestParameters.test_constant_real_singlec                 C   r   r   )r   r   float64r   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   foo_compound_intr   r    r   r   r   test_constant_compound_int-   r$   z)TestParameters.test_constant_compound_intc                 C   s.   t jdt jd}| j| t|g d d S )N   r   )   r   r   r   )r   r   r)   r   foo_non_compound_intr   r    r   r   r   test_constant_non_compound_int8   s   z-TestParameters.test_constant_non_compound_intc                 C   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   foo_longr   r    r   r   r   test_constant_integer_longJ   r$   z)TestParameters.test_constant_integer_longc                 C   r   Nr   r   r   r   )   r   r   )r   r   r%   r   r   r   foor   r    r   r   r   test_constant_bothU   r$   z!TestParameters.test_constant_bothc                 C   r   r5   )r   r   r%   r   r   r   foo_nor   r    r   r   r   test_constant_no`   r$   zTestParameters.test_constant_noc                 C   r   r5   )r   r   r%   r   r   r   foo_sumr   r    r   r   r   test_constant_sumk   r$   z TestParameters.test_constant_sumN)__name__
__module____qualname__r   sourcespytestmarkslowr#   r'   r+   r/   r1   r4   r8   r:   r<   r   r   r   r   r      s2    



















r   )r   rA   numpyr   numpy.testingr   r    r   r   F2PyTestr   r   r   r   r   <module>   s    