
    (phe                     R    S SK r S SKrS SKrSSKJr   " S S\R                  5      rg)    N   )utilc            
          \ rS rSr\R
                  " SSSS5      \R
                  " SSSS5      \R
                  " SSSS5      \R
                  " SSSS5      \R
                  " SSSS	5      /r\R                  R                  S
 5       r
\R                  R                  S 5       r\R                  R                  S 5       r\R                  R                  S 5       r\R                  R                  S 5       r\R                  R                  S 5       r\R                  R                  S 5       r\R                  R                  S 5       r\R                  R                  S 5       rSrg)TestParameters	   testssrc	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg N   dtype      )   r   r   )	nparangefloat32pytestraises
ValueErrormodule
foo_singleallcloseselfxs     R/var/www/html/venv/lib/python3.13/site-packages/numpy/f2py/tests/test_parameter.pytest_constant_real_single(TestParameters.test_constant_real_single   {     IIarzz*3Q3/j$++"8"8!< IIarzz*q!{{134444    c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg r   )	r   r   float64r   r   r   r   
foo_doubler   r   s     r   test_constant_real_double(TestParameters.test_constant_real_double   r"   r#   c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg )Nr   r   r   r   )   r   r   )	r   r   int32r   r   r   r   foo_compound_intr   r   s     r   test_constant_compound_int)TestParameters.test_constant_compound_int)   s{     IIarxx(1-j$++">">B IIarxx($$Q'{{134444r#   c                     [         R                  " S[         R                  S9nU R                  R	                  U5        [         R
                  " U/ SQ5      (       d   eg )N   r   )   r   r   r   )r   r   r+   r   foo_non_compound_intr   r   s     r   test_constant_non_compound_int-TestParameters.test_constant_non_compound_int4   sB     IIarxx(((+{{1:;;;;r#   c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg r   )	r   r   r+   r   r   r   r   foo_intr   r   s     r   test_constant_integer_int(TestParameters.test_constant_integer_int;   s{     IIarxx(1-j$++"5"5q9 IIarxx(A{{134444r#   c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg r   )	r   r   int64r   r   r   r   foo_longr   r   s     r   test_constant_integer_long)TestParameters.test_constant_integer_longF   s{     IIarxx(1-j$++"6"6: IIarxx(Q{{134444r#   c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg Nr   r   r   r   )   r   r   )	r   r   r%   r   r   r   r   foor   r   s     r   test_constant_both!TestParameters.test_constant_bothQ   sw     IIarzz*3Q3/j$++//15 IIarzz*{{1GHHHHr#   c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg r?   )	r   r   r%   r   r   r   r   foo_nor   r   s     r   test_constant_noTestParameters.test_constant_no\   s{     IIarzz*3Q3/j$++"4"4a8 IIarzz*1{{1GHHHHr#   c                 r   [         R                  " S[         R                  S9S S S2   n[        R                  " [
        U R                  R                  U5        [         R                  " S[         R                  S9nU R                  R                  U5        [         R                  " U/ SQ5      (       d   eg r?   )	r   r   r%   r   r   r   r   foo_sumr   r   s     r   test_constant_sum TestParameters.test_constant_sumg   s{     IIarzz*3Q3/j$++"5"5q9 IIarzz*A{{1GHHHHr#    N)__name__
__module____qualname____firstlineno__r   getpathsourcesr   markslowr    r'   r-   r3   r7   r<   rB   rF   rJ   __static_attributes__rL   r#   r   r   r   	   s~    	We[2EFWe[2HIWe[2EFWe[2IJWe[2MNG [[5 5 [[5 5 [[5 5 [[< < [[5 5 [[5 5 [[I I [[I I [[I Ir#   r   )osr   numpyr    r   F2PyTestr   rL   r#   r   <module>rZ      s%    	   gIT]] gIr#   