idePddlZddlZddlZddlmZGddejZdS)N)utilc @eZdZejddddejddddejddddejddddejddddgZejjd Z ejjd Z ejjd Z ejjd Z ejjd Z ejjdZejjdZejjdZejjdZdS)TestParameterstestssrc parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90ctjdtjddd}tjt |jj|tjdtj}|j|dSNdtype)nparangefloat32pytestraises ValueErrormodule foo_singleselfxs T/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/f2py/tests/test_parameter.pytest_constant_real_singlez(TestParameters.test_constant_real_singler Iarz * * *33Q3 / j$+"8!<<< Iarz * * * q!!!!!ctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrfloat64rrrr foo_doublers rtest_constant_real_doublez(TestParameters.test_constant_real_doublerrctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrint32rrrrfoo_compound_intrs rtest_constant_compound_intz)TestParameters.test_constant_compound_int)sr Iarx ( ( (1 - j$+">BBB Iarx ( ( ( $$Q'''''rcztjdtj}|j|dS)Nr )rrr%rfoo_non_compound_intrs rtest_constant_non_compound_intz-TestParameters.test_constant_non_compound_int4s6 Iarx ( ( ( ((+++++rctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrr%rrrrfoo_intrs rtest_constant_integer_intz(TestParameters.test_constant_integer_int;sr Iarx ( ( (1 - j$+"5q999 Iarx ( ( ( Arctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrint64rrrrfoo_longrs rtest_constant_integer_longz)TestParameters.test_constant_integer_longFsr Iarx ( ( (1 - j$+"6::: Iarx ( ( ( Qrctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrr!rrrrfoors rtest_constant_bothz!TestParameters.test_constant_bothQso Iarz * * *33Q3 / j$+/1555 Iarz * * * rctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrr!rrrrfoo_nors rtest_constant_nozTestParameters.test_constant_no\sr Iarz * * *33Q3 / j$+"4a888 Iarz * * * 1rctjdtjddd}tjt |jj|tjdtj}|j|dSr )rrr!rrrrfoo_sumrs rtest_constant_sumz TestParameters.test_constant_sumgsr Iarz * * *33Q3 / j$+"5q999 Iarz * * * ArN)__name__ __module__ __qualname__rgetpathsourcesrmarkslowrr#r'r+r.r2r5r8r;rrrr s  We[2EFF We[2HII We[2EFF We[2IJJ We[2MNN G [555 [555 [555 [<<<  [555 [555 [III [III [IIIIIrr)osrnumpyrrF2PyTestrrCrrrHs gIgIgIgIgIT]gIgIgIgIgIr