diff options
author | Rohit Goswami <rog32@hi.is> | 2022-06-21 18:45:55 +0300 |
---|---|---|
committer | Rohit Goswami <rog32@hi.is> | 2022-06-21 18:49:17 +0300 |
commit | 278309170715384a542b7e82b83d57f73025122e (patch) | |
tree | d99823ea2a173f359549af4a5edf06c6c39ce418 /numpy/f2py/tests/test_value_attrspec.py | |
parent | f6f0ad0643848faa39d62a6a44bbe72aa6f0ad3b (diff) | |
download | numpy-278309170715384a542b7e82b83d57f73025122e.tar.gz |
TST: Ensure the f2py value attribute is handled
Diffstat (limited to 'numpy/f2py/tests/test_value_attrspec.py')
-rw-r--r-- | numpy/f2py/tests/test_value_attrspec.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/numpy/f2py/tests/test_value_attrspec.py b/numpy/f2py/tests/test_value_attrspec.py new file mode 100644 index 000000000..83aaf6c91 --- /dev/null +++ b/numpy/f2py/tests/test_value_attrspec.py @@ -0,0 +1,14 @@ +import os +import pytest + +from . import util + +class TestValueAttr(util.F2PyTest): + sources = [util.getpath("tests", "src", "value_attrspec", "gh21665.f90")] + + # gh-21665 + def test_long_long_map(self): + inp = 2 + out = self.module.fortfuncs.square(inp) + exp_out = 4 + assert out == exp_out |