wg-backend-django/dell-env/lib/python3.11/site-packages/numpy/f2py/tests/test_isoc.py
2023-10-30 14:40:43 +07:00

20 lines
449 B
Python

from . import util
import numpy as np
class TestISOC(util.F2PyTest):
sources = [
util.getpath("tests", "src", "isocintrin", "isoCtests.f90"),
]
# gh-24553
def test_c_double(self):
out = self.module.coddity.c_add(1, 2)
exp_out = 3
assert out == exp_out
# gh-9693
def test_bindc_function(self):
out = self.module.coddity.wat(1, 20)
exp_out = 8
assert out == exp_out