summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_value_attrspec.py
blob: 83aaf6c9161e0ccc0a388c6b671c63fdbeb3f81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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