8000 TST: Add a test for assumed length F77 · numpy/numpy@3b862dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b862dd

Browse files
committed
TST: Add a test for assumed length F77
1 parent c46a0ad commit 3b862dd

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

numpy/f2py/tests/src/string/gh24008.f

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SUBROUTINE GREET(NAME, GREETING)
2+
CHARACTER NAME*(*), GREETING*(*)
3+
CHARACTER*(50) MESSAGE
4+
5+
MESSAGE = 'Hello, ' // NAME // ', ' // GREETING
6+
c$$$ PRINT *, MESSAGE
7+
8+
END SUBROUTINE GREET

numpy/f2py/tests/test_string.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ def test_char(self):
1919
assert out == pytest.approx(expected)
2020

2121

22+
class TestStringAssumedLength(util.F2PyTest):
23+
sources = [util.getpath("tests", "src", "string", "gh24008.f")]
24+
25+
def test_gh24008(self):
26+
self.module.greet("joe", "bob")
27+
2228
class TestDocStringArguments(util.F2PyTest):
2329
sources = [util.getpath("tests", "src", "string", "string.f")]
2430

0 commit comments

Comments
 (0)
0