1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
U
P±dÕã@s:ddlZddlZddlZddlmZGdd„dejƒZdS)éNé)Úutilc
@sæeZdZe dddd¡e dddd¡e dddd¡e dddd¡e dddd¡gZejjd    d
„ƒZ    ejjd d „ƒZ
ejjd d„ƒZ ejjdd„ƒZ ejjdd„ƒZ ejjdd„ƒZejjdd„ƒZejjdd„ƒZejjdd„ƒZdS)ÚTestParametersÚtestsÚsrcZ    parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90cCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dS©Né©Zdtypeééér)
ÚnpÚarangeÚfloat32ÚpytestÚraisesÚ
ValueErrorÚmoduleZ
foo_singleÚallcloseÚAssertionError©ÚselfÚx©rúVd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/f2py/tests/test_parameter.pyÚtest_constant_real_singles
 z(TestParameters.test_constant_real_singlecCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dSr)
r rÚfloat64rrrrZ
foo_doublerrrrrrÚtest_constant_real_doubles
 z(TestParameters.test_constant_real_doublecCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dS)Nrr    r
r é r)
r rÚint32rrrrZfoo_compound_intrrrrrrÚtest_constant_compound_int)s
 z)TestParameters.test_constant_compound_intcCs8tjdtjd}|j |¡t |ddddg¡s4t‚dS)Nér    érr
r )r rrrZfoo_non_compound_intrrrrrrÚtest_constant_non_compound_int4s z-TestParameters.test_constant_non_compound_intcCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dSr)
r rrrrrrZfoo_intrrrrrrÚtest_constant_integer_int;s
 z(TestParameters.test_constant_integer_intcCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dSr)
r rÚint64rrrrZfoo_longrrrrrrÚtest_constant_integer_longFs
 z)TestParameters.test_constant_integer_longcCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dS©Nrr    r
r é)
r rrrrrrZfoorrrrrrÚtest_constant_bothQs
 z!TestParameters.test_constant_bothcCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dSr')
r rrrrrrZfoo_norrrrrrÚtest_constant_no\s
 zTestParameters.test_constant_nocCsbtjdtjdddd…}t t|jj|¡tjdtjd}|j |¡t |dddg¡s^t    ‚dSr')
r rrrrrrZfoo_sumrrrrrrÚtest_constant_sumgs
 z TestParameters.test_constant_sumN)Ú__name__Ú
__module__Ú __qualname__rZgetpathÚsourcesrÚmarkZslowrrr r#r$r&r)r*r+rrrrr    s0û
 
 
 
 
 
 
 
 
 
 
 
 
 
 
r)ÚosrÚnumpyr ÚrZF2PyTestrrrrrÚ<module>s