summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_parameter.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/tests/test_parameter.py')
-rw-r--r--numpy/f2py/tests/test_parameter.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/f2py/tests/test_parameter.py b/numpy/f2py/tests/test_parameter.py
index e7c6add51..b6891756d 100644
--- a/numpy/f2py/tests/test_parameter.py
+++ b/numpy/f2py/tests/test_parameter.py
@@ -19,6 +19,7 @@ class TestParameters(util.F2PyTest):
_path('src', 'parameter', 'constant_integer.f90'),
_path('src', 'parameter', 'constant_both.f90'),
_path('src', 'parameter', 'constant_compound.f90'),
+ _path('src', 'parameter', 'constant_non_compound.f90'),
]
@dec.slow
@@ -55,6 +56,13 @@ class TestParameters(util.F2PyTest):
assert_equal(x, [0 + 1 + 2*6, 1, 2])
@dec.slow
+ def test_constant_non_compound_int(self):
+ # check values
+ x = np.arange(4, dtype=np.int32)
+ self.module.foo_non_compound_int(x)
+ assert_equal(x, [0 + 1 + 2 + 3*4, 1, 2, 3])
+
+ @dec.slow
def test_constant_integer_int(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.int32)[::2]