wg-backend-django/dell-env/lib/python3.11/site-packages/numpy/f2py/tests/test_isoc.py

20 lines
449 B
Python
Raw Normal View History

2023-10-30 03:40:43 -04:00
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