Ë
    Bü´jf  ã                   ó|   — d dl Z d dlZddlmZ e j
                  j                   G d„ dej                  «      «       Zy)é    Né   )Úutilc                   óH  — 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«       ej                  dddd	«      gZd
„ Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)ÚTestParametersÚtestsÚsrcÚ	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90zconstant_array.f90c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y ©Né   ©Údtypeé   é   )é   r   r   )	ÚnpÚarangeÚfloat32ÚpytestÚraisesÚ
ValueErrorÚmoduleÚ
foo_singleÚallclose©ÚselfÚxs     ú]/root/workspace/ytshorts/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_parameter.pyÚtest_constant_real_singlez(TestParameters.test_constant_real_single   óv   € ä�I‰I�aœrŸz™zÔ*©3¨Q¨3Ñ/ˆÜ�‰”j $§+¡+×"8Ñ"8¸!Ô<ô �I‰I�aœrŸz™zÔ*ˆØ�‰×Ñ˜qÔ!Ü�{‰{˜1Ò3Ô4Ð4Ñ4ó    c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y r   )	r   r   Úfloat64r   r   r   r   Ú
foo_doubler   r   s     r   Útest_constant_real_doublez(TestParameters.test_constant_real_double   r    r!   c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y )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(   sv   € ä�I‰I�aœrŸx™xÔ(©¨1¨Ñ-ˆÜ�‰”j $§+¡+×">Ñ">ÀÔBô �I‰I�aœrŸx™xÔ(ˆØ�‰×$Ñ$ QÔ'Ü�{‰{˜1Ò3Ô4Ð4Ñ4r!   c                 ó¸   — t        j                  dt         j                  ¬«      }| j                  j	                  |«       t        j
                  |g d¢«      sJ ‚y )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_int2   s=   € ä�I‰I�aœrŸx™xÔ(ˆØ�‰×(Ñ(¨Ô+Ü�{‰{˜1Ò:Ô;Ð;Ñ;r!   c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y r   )	r   r   r(   r   r   r   r   Úfoo_intr   r   s     r   Útest_constant_integer_intz(TestParameters.test_constant_integer_int8   sv   € ä�I‰I�aœrŸx™xÔ(©¨1¨Ñ-ˆÜ�‰”j $§+¡+×"5Ñ"5°qÔ9ô �I‰I�aœrŸx™xÔ(ˆØ�‰×Ñ˜AÔÜ�{‰{˜1Ò3Ô4Ð4Ñ4r!   c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y r   )	r   r   Úint64r   r   r   r   Úfoo_longr   r   s     r   Útest_constant_integer_longz)TestParameters.test_constant_integer_longB   sv   € ä�I‰I�aœrŸx™xÔ(©¨1¨Ñ-ˆÜ�‰”j $§+¡+×"6Ñ"6¸Ô:ô �I‰I�aœrŸx™xÔ(ˆØ�‰×Ñ˜QÔÜ�{‰{˜1Ò3Ô4Ð4Ñ4r!   c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y ©Nr   r   r   r   )é   r   r   )	r   r   r#   r   r   r   r   Úfoor   r   s     r   Útest_constant_bothz!TestParameters.test_constant_bothL   sr   € ä�I‰I�aœrŸz™zÔ*©3¨Q¨3Ñ/ˆÜ�‰”j $§+¡+§/¡/°1Ô5ô �I‰I�aœrŸz™zÔ*ˆØ�‰�‰˜ÔÜ�{‰{˜1ÒGÔHÐHÑHr!   c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y r8   )	r   r   r#   r   r   r   r   Úfoo_nor   r   s     r   Útest_constant_nozTestParameters.test_constant_noV   sv   € ä�I‰I�aœrŸz™zÔ*©3¨Q¨3Ñ/ˆÜ�‰”j $§+¡+×"4Ñ"4°aÔ8ô �I‰I�aœrŸz™zÔ*ˆØ�‰×Ñ˜1ÔÜ�{‰{˜1ÒGÔHÐHÑHr!   c                 ól  — t        j                  dt         j                  ¬«      d d d…   }t        j                  t
        | j                  j                  |«       t        j                  dt         j                  ¬«      }| j                  j                  |«       t        j                  |g d¢«      sJ ‚y r8   )	r   r   r#   r   r   r   r   Úfoo_sumr   r   s     r   Útest_constant_sumz TestParameters.test_constant_sum`   sv   € ä�I‰I�aœrŸz™zÔ*©3¨Q¨3Ñ/ˆÜ�‰”j $§+¡+×"5Ñ"5°qÔ9ô �I‰I�aœrŸz™zÔ*ˆØ�‰×Ñ˜AÔÜ�{‰{˜1ÒGÔHÐHÑHr!   c                 óh  — t        j                  dt         j                  ¬«      }t        j                  dt         j                  ¬«      }| j                  j	                  ||«      }t        j
                  |g d¢«      sJ ‚t        j
                  |g d¢«      sJ ‚t        j
                  |d«      sJ ‚y )Nr   r   é   )ç        gš™™™™™¹?gš™™™™™É?)rD   g      $@g      4@g      >@g      D@g      3@)r   r   r#   r   Ú	foo_arrayr   )r   r   ÚyÚzs       r   Útest_constant_arrayz"TestParameters.test_constant_arrayj   s~   € Ü�I‰I�aœrŸz™zÔ*ˆÜ�I‰I�aœrŸz™zÔ*ˆØ�K‰K×!Ñ! ! QÓ'ˆÜ�{‰{˜1Ò5Ô6Ð6Ð6Ü�{‰{˜1ÒGÔHÐHÐHÜ�{‰{˜1˜dÔ#Ð#Ñ#r!   c                 óÖ   — t        j                  dt         j                  ¬«      }| j                  j	                  |«      }t        j
                  ||j                  dd¬«      «      sJ ‚y )Nr   r   )r   r   ÚF)Úorder)r   r   r#   r   Úfoo_array_any_indexr   Úreshape)r   r   rF   s      r   Útest_constant_array_any_indexz,TestParameters.test_constant_array_any_indexr   sK   € Ü�I‰I�aœrŸz™zÔ*ˆØ�K‰K×+Ñ+¨AÓ.ˆÜ�{‰{˜1˜aŸi™i¨°c˜iÓ:Ô;Ð;Ñ;r!   c                 óF   — | j                   j                  «       }|dk(  sJ ‚y )Né	   )r   Úfoo_array_delimsr   s     r   Útest_constant_array_delimsz)TestParameters.test_constant_array_delimsw   s   € Ø�K‰K×(Ñ(Ó*ˆØ�AŠvˆ‰vr!   N)Ú__name__Ú
__module__Ú__qualname__r   ÚgetpathÚsourcesr   r%   r*   r/   r2   r6   r;   r>   rA   rH   rN   rR   © r!   r   r   r      sÈ   „ ð 	ˆ�‰�W˜e [Ð2EÓFØˆ�‰�W˜e [Ð2HÓIØˆ�‰�W˜e [Ð2EÓFØˆ�‰�W˜e [Ð2IÓJØˆ�‰�W˜e [Ð2MÓNØˆ�‰�W˜e [Ð2FÓGð€Gò5ò5ò5ò<ò5ò5òIòIòIò$ò<ó
r!   r   )	r   Únumpyr   Ú r   ÚmarkÚslowÚF2PyTestr   rX   r!   r   ú<module>r^      s:   ðÛ ã å ð ‡�×Ñôp�T—]‘]ó pó ñpr!   