o 6aF@sRddlZddlZddlZddlmZmZddlmZddZ Gdddej Z dS) N) assert_raises assert_equal)utilcGstjjtjtf|S)N)ospathjoindirname__file__)ar A/usr/lib/python3/dist-packages/numpy/f2py/tests/test_parameter.py_path src@seZdZedddedddedddedddedddgZejjdd Zejjd d Z ejjd d Z ejjddZ ejjddZ ejjddZ ejjddZejjddZejjddZdS)TestParameterssrc parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90cCXtjdtjdddd}tt|jj|tjdtjd}|j|t|gddSNdtype)rr)nparangefloat32r ValueErrormodule foo_singlerselfxr r r test_constant_real_single  z(TestParameters.test_constant_real_singlecCrr)rrfloat64rrr foo_doublerr r r r test_constant_real_double"r$z(TestParameters.test_constant_real_doublecCr)Nrrrr) rr)rrint32rrrfoo_compound_intrr r r r test_constant_compound_int-r$z)TestParameters.test_constant_compound_intcCs.tjdtjd}|j|t|gddS)Nr)rrr)rrr)rfoo_non_compound_intrr r r r test_constant_non_compound_int8s z-TestParameters.test_constant_non_compound_intcCrr)rrr)rrrfoo_intrr r r r test_constant_integer_int?r$z(TestParameters.test_constant_integer_intcCrr)rrint64rrrfoo_longrr r r r test_constant_integer_longJr$z)TestParameters.test_constant_integer_longcCrNrrrr)rr)rrr%rrrfoorr r r r test_constant_bothUr$z!TestParameters.test_constant_bothcCrr5)rrr%rrrfoo_norr r r r test_constant_no`r$zTestParameters.test_constant_nocCrr5)rrr%rrrfoo_sumrr r r r test_constant_sumkr$z TestParameters.test_constant_sumN)__name__ __module__ __qualname__rsourcespytestmarkslowr#r'r+r/r1r4r8r:r<r r r r rs2              r) rrAnumpyr numpy.testingrrrrF2PyTestrr r r r s