K iJddlZddlZddlmZGddej Zy)N)utilc eZdZejddddejddddejddddejddddejddddejdddd gZejjd Z ejjd Z ejjd Z ejjd Z ejjdZ ejjdZejjdZejjdZejjdZdZdZdZy)TestParameterstestssrc parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90zconstant_array.f90cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyNdtype)rr) nparangefloat32pytestraises ValueErrormodule foo_singleallcloseselfxs e/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/f2py/tests/test_parameter.pytest_constant_real_singlez(TestParameters.test_constant_real_singlex IIarzz *3Q3 / j$++"8"8!< IIarzz * q!{{13444cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyr ) rrfloat64rrrr foo_doublerrs rtest_constant_real_doublez(TestParameters.test_constant_real_doubler r!cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJy)Nr r rr) rr) rrint32rrrrfoo_compound_intrrs rtest_constant_compound_intz)TestParameters.test_constant_compound_int)sx IIarxx (1 - j$++">">B IIarxx ( $$Q'{{13444r!ctjdtj}|jj |tj |gdsJy)Nr )rrr)rrr(rfoo_non_compound_intrrs rtest_constant_non_compound_intz-TestParameters.test_constant_non_compound_int4s? IIarxx ( ((+{{1:;;;r!cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyr ) rrr(rrrrfoo_intrrs rtest_constant_integer_intz(TestParameters.test_constant_integer_int;sx IIarxx (1 - j$++"5"5q9 IIarxx ( A{{13444r!cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyr ) rrint64rrrrfoo_longrrs rtest_constant_integer_longz)TestParameters.test_constant_integer_longFsx IIarxx (1 - j$++"6"6: IIarxx ( Q{{13444r!cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyNr r rr)rr ) rrr#rrrrfoorrs rtest_constant_bothz!TestParameters.test_constant_bothQst IIarzz *3Q3 / j$++//15 IIarzz * {{1GHHHr!cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyr8) rrr#rrrrfoo_norrs rtest_constant_nozTestParameters.test_constant_no\sx IIarzz *3Q3 / j$++"4"4a8 IIarzz * 1{{1GHHHr!cltjdtjddd}tjt |j j|tjdtj}|j j|tj|gdsJyr8) rrr#rrrrfoo_sumrrs rtest_constant_sumz TestParameters.test_constant_sumgsx IIarzz *3Q3 / j$++"5"5q9 IIarzz * A{{1GHHHr!chtjdtj}tjdtj}|jj ||}tj |gdsJtj |gdsJtj |dsJy)Nrr )g?g?)rDg$@g4@g>@gD@g3@)rrr#r foo_arrayr)rryzs rtest_constant_arrayz"TestParameters.test_constant_arrayrs~ IIarzz * IIarzz * KK ! !!Q '{{15666{{1GHHH{{1d###r!ctjdtj}|jj |}tj ||j ddsJy)Nr r )rrF)order)rrr#rfoo_array_any_indexrreshape)rrrFs rtest_constant_array_any_indexz,TestParameters.test_constant_array_any_indexzsK IIarzz * KK + +A .{{1aiici:;;;r!cF|jj}|dk(sJy)N )rfoo_array_delimsrs rtest_constant_array_delimsz)TestParameters.test_constant_array_delimss KK ( ( *Av vr!N)__name__ __module__ __qualname__rgetpathsourcesrmarkslowrr%r*r/r2r6r;r>rArHrNrRr!rrrs  We[2EF We[2HI We[2EF We[2IJ We[2MN We[2FG G [[55 [[55 [[55 [[<<  [[55 [[55 [[II [[II [[II$< r!r)rnumpyrrF2PyTestrrZr!rr^s  yT]]yr!