
    Kh                     J    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
                  " 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S rS rSrg)TestParameters   testssrc	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90zconstant_array.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     Q/var/www/html/env/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#   c                    [         R                  " S[         R                  S9n[         R                  " S[         R                  S9nU R                  R	                  X5      n[         R
                  " U/ SQ5      (       d   e[         R
                  " U/ SQ5      (       d   e[         R
                  " US5      (       d   eg )Nr   r      )        g?g?)rN   g      $@g      4@g      >@g      D@g      3@)r   r   r%   r   	foo_arrayr   )r   r   yzs       r   test_constant_array"TestParameters.test_constant_arrayr   s    IIarzz*IIarzz*KK!!!'{{112222{{1?@@@@{{1d####r#   c                     [         R                  " S[         R                  S9nU R                  R	                  U5      n[         R
                  " X!R                  SSS95      (       d   eg )Nr   r   )r   r   F)order)r   r   r%   r   foo_array_any_indexr   reshape)r   r   rP   s      r   test_constant_array_any_index,TestParameters.test_constant_array_any_indexz   sL    IIarzz*KK++A.{{1iici:;;;;r#   c                 H    U R                   R                  5       nUS:X  d   eg )N	   )r   foo_array_delimsr   s     r   test_constant_array_delims)TestParameters.test_constant_array_delims   s    KK((*Avvr#    N)__name__
__module____qualname____firstlineno__r   getpathsourcesr   markslowr    r'   r-   r3   r7   r<   rB   rF   rJ   rR   rY   r^   __static_attributes__r`   r#   r   r   r      s    	We[2EFWe[2HIWe[2EFWe[2IJWe[2MNWe[2FGG [[5 5 [[5 5 [[5 5 [[< < [[5 5 [[5 5 [[I I [[I I [[I I$<
r#   r   )r   numpyr    r   F2PyTestr   r`   r#   r   <module>rm      s       yT]] yr#   