GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TST: Add a test for gh-24553 · charris/numpy@0230426

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • numpy/f2py/tests
    • src/f2cmap
      • iso_c_oddity.f90
    • test_f2cmap.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎numpy/f2py/tests/src/f2cmap/iso_c_oddity.f90‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module coddity
2+
use iso_c_binding, only: c_double
3+
implicit none
4+
contains
5+
subroutine c_add(a, b, c) bind(c, name="c_add")
6+
real(c_double), intent(in) :: a, b
7+
real(c_double), intent(out) :: c
8+
c = a + b
9+
end subroutine c_add
10+
end module coddity
Collapse file

‎numpy/f2py/tests/test_f2cmap.py‎

Copy file name to clipboardExpand all lines: numpy/f2py/tests/test_f2cmap.py
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ def test_long_long_map(self):
1313
out = self.module.func1(inp)
1414
exp_out = 3
1515
assert out == exp_out
16+
17+
class TestISOCmap(util.F2PyTest):
18+
sources = [
19+
util.getpath("tests", "src", "f2cmap", "iso_c_oddity.f90"),
20+
]
21+
22+
# gh-24553
23+
def test_c_double(self):
24+
out = self.module.coddity.c_add(1, 2)
25+
exp_out = 3
26+
assert out == exp_out

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.