
    Nge                     P    d dl Z d dlZd dlZddlmZ  G d dej                  ZdS )    N   )utilc            
       @   e Zd Z ej        dddd           ej        dddd           ej        dddd           ej        dddd           ej        dddd          gZej        j        d	             Z	ej        j        d
             Z
ej        j        d             Zej        j        d             Zej        j        d             Zej        j        d             Zej        j        d             Zej        j        d             Zej        j        d             ZdS )TestParameterstestssrc	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S N   dtype      )   r   r   )	nparangefloat32pytestraises
ValueErrormodule
foo_singleallcloseselfxs     [/var/www/html/ai-engine/env/lib/python3.11/site-packages/numpy/f2py/tests/test_parameter.pytest_constant_real_singlez(TestParameters.test_constant_real_single        Iarz***33Q3/j$+"8!<<< Iarz***q!!!{13334444444    c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S r   )	r   r   float64r   r   r   r   
foo_doubler   r   s     r   test_constant_real_doublez(TestParameters.test_constant_real_double   r    r!   c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S )Nr   r   r   r   )   r   r   )	r   r   int32r   r   r   r   foo_compound_intr   r   s     r   test_constant_compound_intz)TestParameters.test_constant_compound_int)   s     Iarx(((1-j$+">BBB Iarx((($$Q'''{13334444444r!   c                     t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S )N   r   )   r   r   r   )r   r   r(   r   foo_non_compound_intr   r   s     r   test_constant_non_compound_intz-TestParameters.test_constant_non_compound_int4   sU     Iarx(((((+++{1:::;;;;;;;r!   c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S r   )	r   r   r(   r   r   r   r   foo_intr   r   s     r   test_constant_integer_intz(TestParameters.test_constant_integer_int;   s     Iarx(((1-j$+"5q999 Iarx(((A{13334444444r!   c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S r   )	r   r   int64r   r   r   r   foo_longr   r   s     r   test_constant_integer_longz)TestParameters.test_constant_integer_longF   s     Iarx(((1-j$+"6::: Iarx(((Q{13334444444r!   c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S Nr   r   r   r   )   r   r   )	r   r   r#   r   r   r   r   foor   r   s     r   test_constant_bothz!TestParameters.test_constant_bothQ   s     Iarz***33Q3/j$+/1555 Iarz***{1GGGHHHHHHHr!   c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S r8   )	r   r   r#   r   r   r   r   foo_nor   r   s     r   test_constant_nozTestParameters.test_constant_no\   s     Iarz***33Q3/j$+"4a888 Iarz***1{1GGGHHHHHHHr!   c                 H   t          j        dt           j                  d d d         }t          j        t
          | j        j        |           t          j        dt           j                  }| j                            |           t          j        |g d          sJ d S r8   )	r   r   r#   r   r   r   r   foo_sumr   r   s     r   test_constant_sumz TestParameters.test_constant_sumg   s     Iarz***33Q3/j$+"5q999 Iarz***A{1GGGHHHHHHHr!   N)__name__
__module____qualname__r   getpathsourcesr   markslowr   r%   r*   r/   r2   r6   r;   r>   rA    r!   r   r   r   	   s        	We[2EFFWe[2HIIWe[2EFFWe[2IJJWe[2MNNG [5 5 5 [5 5 5 [5 5 5 [< < < [5 5 5 [5 5 5 [I I I [I I I [I I I I Ir!   r   )osr   numpyr    r   F2PyTestr   rI   r!   r   <module>rN      s    				           gI gI gI gI gIT] gI gI gI gI gIr!   