codekingpro/portable-devtools
115k
1import numpy as np
2
3from . import util
4
5
6class TestF2Cmap(util.F2PyTest):
7 sources = [
8 util.getpath("tests", "src", "f2cmap", "isoFortranEnvMap.f90"),
9 util.getpath("tests", "src", "f2cmap", ".f2py_f2cmap")
10 ]
11
12 # gh-15095
13 def test_gh15095(self):
14 inp = np.ones(3)
15 out = self.module.func1(inp)
16 exp_out = 3
17 assert out == exp_out
18 