Buckets:
ranranrunforit/build-small-hackathon-storage / pylibs /numpy /f2py /tests /test_abstract_interface.py
| import pytest | |
| from numpy.f2py import crackfortran | |
| from numpy.testing import IS_WASM | |
| from . import util | |
| class TestAbstractInterface(util.F2PyTest): | |
| sources = [util.getpath("tests", "src", "abstract_interface", "foo.f90")] | |
| skip = ["add1", "add2"] | |
| def test_abstract_interface(self): | |
| assert self.module.ops_module.foo(3, 5) == (8, 13) | |
| def test_parse_abstract_interface(self): | |
| # Test gh18403 | |
| fpath = util.getpath("tests", "src", "abstract_interface", | |
| "gh18403_mod.f90") | |
| mod = crackfortran.crackfortran([str(fpath)]) | |
| assert len(mod) == 1 | |
| assert len(mod[0]["body"]) == 1 | |
| assert mod[0]["body"][0]["block"] == "abstract interface" | |
Xet Storage Details
- Size:
- 811 Bytes
- Xet hash:
- 77e8c1e67c70253f89c66858cc958400acc32e3d9ed02a57fa7876dd886d7e95
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.